Before you use the PHP examples, make sure you have PHP, PEAR and the HTTP_Request extension installed. The following may be helpful.
You can download the code sample here
Note: In OGFRestAPI.php file, you need to replace the log in developerID and Password with your own developerID and Password
Note: In searchProcess.php file, you need to replace the log in developerID and Password with your own developerID and Password