Search found 20 matches

by jinijames
Thu Nov 08, 2012 4:18 am
Forum: PHP Scripts
Topic: News script for two languages
Replies: 1
Views: 917

Re: News script for two languages

What "webpage with two different laguages"
by jinijames
Thu Nov 08, 2012 4:17 am
Forum: PHP Installation
Topic: php.ini configuration
Replies: 1
Views: 1739

Re: php.ini configuration

; any text on a line after an unquoted semicolon (;) is ignored [php] ; section markers (text within square brackets) are also ignored ; Boolean values can be set to either: ; true, on, yes ; or false, off, no, none register_globals = off track_errors = yes ; you can enclose strings in double-quotes...
by jinijames
Wed Nov 07, 2012 4:14 am
Forum: PHP Scripts
Topic: While loop problem
Replies: 2
Views: 1331

Re: While loop problem

<?php include 'db.php'; $i=0; $result15=mysql_query("select c.dishes from c"); while($row=mysql_fetch_array($result15)) { if($row['dishes']!=NULL) { $dish[$i]=$row['dishes']; $i++; } } //$j=0; //while($j<$i) $j=0; while($j<$i) { $result16=mysql_query("select * from dish_box where dish_name='$dish[$j...
by jinijames
Wed Nov 07, 2012 4:12 am
Forum: PHP Scripts
Topic: ifram onload
Replies: 1
Views: 974

Re: ifram onload

Alert "Frame is loaded" immediately after a frame is loaded:
<html>
<head>
<script>
function load()
{
alert("Frame is loaded");
}
</script>
</head>

<frameset cols="50%,50%">
<frame src="frame_a.htm" onload="load()">
<frame src="frame_b.htm">
</frameset>

</html>
by jinijames
Tue Nov 06, 2012 4:06 am
Forum: PHP coding => General
Topic: Creating an Advanced Form
Replies: 1
Views: 632

Re: Creating an Advanced Form

<div id="contactform"> <h1>Contact <span>Form</span></h1> <form name="contactform" id="form"> <div id="result">< ?php if($result) echo "<div class="message">".$result."</div>"; ?></div> <label>Department</label><br> <select name="dept" class="text"> <option value="sales">Sales</option> <option value...
by jinijames
Mon Nov 05, 2012 4:32 am
Forum: PHP General
Topic: Generate JSON from PHP classes
Replies: 1
Views: 755

Re: Generate JSON from PHP classes

class Error { private $name; private $code; private $msg; public function __construct($ErrorName, $ErrorCode, $ErrorMSG){ $this->name = $ErrorName; $this->code = $ErrorCode; $this->msg = $ErrorMSG; } public function getCode(){ return $this->code; } public function getName(){ return $this->name; } pu...
by jinijames
Mon Nov 05, 2012 4:30 am
Forum: PHP General
Topic: Count link doesnt work
Replies: 1
Views: 895

Re: Count link doesnt work

Try this -

<?php
$a[0] = 1;
$a[1] = 3;
$a[2] = 5;
$result = count($a);
// $result == 3

$b[0] = 7;
$b[5] = 9;
$b[10] = 11;
$result = count($b);
// $result == 3

$result = count(null);
// $result == 0

$result = count(false);
// $result == 1
?>

hire php developer | hire magento developer
by jinijames
Tue Oct 30, 2012 4:49 am
Forum: PHP coding => General
Topic: running .sh file thorough php
Replies: 5
Views: 994

Re: running .sh file thorough php

I guess i am not sure , any way check it out -

<?php

shell_execute('sh filename.sh');
?>

hire php developer | hire magento developer
by jinijames
Tue Oct 30, 2012 4:47 am
Forum: PHP coding => General
Topic: Displaying username in every page..
Replies: 1
Views: 827

Re: Displaying username in every page..

<?php require_once('core/db.php'); require_once('core/secure.php'); $query = mysql_query("SELECT username FROM admin WHERE id = 1"); $username = mysql_fetch_array($query); ?><?php echo $username[username]; ?>




hire php developer | hire magento developer
by jinijames
Tue Oct 30, 2012 4:46 am
Forum: PHP coding => General
Topic: gmail signature settings using php
Replies: 1
Views: 822

Re: gmail signature settings using php

The referral link ... so, if my parameters are: foo=bar&bar=baz, I will sort the dictionary of parameters, add the secret $SECRET='asd32efe32ef2df23' and create: $sig = md5('bar=baz&foo=bar'.$SECRET); then can just add &sig={$sig} to the request. the other side will do the same with the parameters (...
by jinijames
Tue Oct 30, 2012 4:43 am
Forum: PHP coding => General
Topic: run bash scripts with php
Replies: 5
Views: 1085

Re: run bash scripts with php

#!/bin/sh

/usr/bin/php test.php
wait

/bin/bash test.sh
wait

/usr/bin/php test2.php
wait

/bin/bash test2.sh
wait

echo all done



hire php developer | hire magento developer
by jinijames
Mon Oct 29, 2012 3:23 am
Forum: PHP coding => General
Topic: Array display problems
Replies: 1
Views: 986

Re: Array display problems

$list = array(); $cat = array(); $query = mysqli_query($dbc,"SELECT id, parent_id, category FROM categories ORDER BY parent_id, category LIKE category ASC"); while($row = mysqli_fetch_assoc($query)){ $list[$row['id']] = array_merge($row, array('children' => array())); } mysqli_free_result($query); f...
by jinijames
Mon Oct 29, 2012 3:20 am
Forum: PHP coding => General
Topic: Paypal ipn payment problem
Replies: 2
Views: 1157

Re: Paypal ipn payment problem

<?php require_once('paypal.class.php'); // include the class file $p = new paypal_class; // initiate an instance $p->paypal_url = "https://www.sandbox.paypal.com/cgi-bin/webscr"; //test url //'https://www.paypal.com/cgi-bin/webscr'; // paypal url $this_script = 'http://'.$_SERVER['HTTP_HOST'].$_SERV...
by jinijames
Mon Oct 29, 2012 3:18 am
Forum: PHP coding => General
Topic: Php form with mysql
Replies: 9
Views: 1739

Re: Php form with mysql

<html>
<body>

<form action="welcome.php" method="post">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>

</body>
</html>
by jinijames
Fri Oct 26, 2012 4:52 am
Forum: PHP Jobs
Topic: PHP developer required in Durham UK
Replies: 0
Views: 1068

Re: PHP developer required in Durham UK

Let me try sending my resume for it.

Thanks,
(Your signature has been removed..)
by jinijames
Thu Oct 25, 2012 4:37 am
Forum: PHP General
Topic: Check condition in PHP
Replies: 14
Views: 2645

Re: Check condition in PHP

The basic one.

<html>
<body>

<?php
$d=date("D");
if ($d=="Fri")
{
echo "Have a nice weekend!";
}
else
{
echo "Have a nice day!";
}
?>

</body>


Thanks,

hire php developer | hire magento developer
by jinijames
Sat Oct 20, 2012 2:39 am
Forum: PHP General
Topic: Question For Yii Framework Developers
Replies: 0
Views: 622

Re: Question For Yii Framework Developers

Yii is a high-performance PHP framework best for developing Web 2.0 applications.

Thanks
hire php developer | hire magento developer
by jinijames
Sat Oct 20, 2012 2:37 am
Forum: PHP General
Topic: Useful PHP Articles, Sites
Replies: 42
Views: 27627

Re: Useful PHP Articles, Sites

If you wish to read quality and fresh article then i would suggest you to go with ezinemark.
by jinijames
Fri Oct 19, 2012 4:38 am
Forum: PHP Jobs
Topic: To employers
Replies: 3
Views: 6039

Re: To employers

Thanks that you said i advance. I is better to remove the post else would create confusions.
by jinijames
Fri Oct 19, 2012 4:36 am
Forum: PHP General
Topic: WHy business people prefer PHP
Replies: 1
Views: 1083

WHy business people prefer PHP

In recent days, most of the business people prefer PHP. As it is a general purpose server side scripting language. Works on the most of the operating system.