How can I write a webs ervice in php?

First, install PHP 5.

http://www2.entropy.ch/

Get the 5.0.2-1 binary package (not the Apache 2 version, unless you've specifically installed Apache 2 on your machine). After it's installed, start Apache, and try accessing a .php file through a web browser. The server should automatically pass .php files through PHP for execution. Find a decent PHP tutorial with a simple "hello world" script so you can test the installation, and then you're set.
 
Back
Top