Archive for the ‘PHP’ Category

How to set time execution PHP

Thursday, May 22nd, 2008

Some php script need more 30 second for execute you can set limit time using code

set_time_limit(int second ) before php code.

How to use intval() function

Wednesday, May 21st, 2008

Intval() is one of php function that use convert string to int. How to use intval() function

Example:

$string = '010';
$stringtoint = inval($string);
echo $stringtoint;
?>

The result is 10

Nusoap Web Service Arrays

Friday, February 1st, 2008

NuSOAP is a group of PHP classes that allow developers to create and consume SOAP web service. Showing no imagination whatsoever, I used this example to present how to return value is array in nusoap web service. (more…)

Nusoap Web Service Arrays (2)

Friday, February 1st, 2008


Previous entire review hello.php .The client changes only in that it passes a parameter that is an array of names, rather than a single scalar name. (more…)

Example PHP Web Service Return Selection Result (2)

Wednesday, January 30th, 2008


The first file I describe in service.php is a service that created in this article describe how to create a client to call service.php . Web service you can call service you must know endpoint of service argument name input parameter not enough you must know the type of input parameter. in service.php that I describe before have one method is “search” input parameter is “keyword”

require_once(’lib\nusoap.php’);
$client = new soapclient(’http://203.157.178.8/hciss/hcissservice/helloservice.php’);
$result = $client->call(’hello’, array(’name’ => ‘Sam’));
printf($result);
?>