The following instructions will help you install a PHP module for the Apache
web server included in MacOS X. This version includes support for the MySQL
and PostgreSQL databases. These instructions are graciously provided by
Marc Liyanage.
Warning
Be careful when you do this, you could screw up your Apache web server!
Do this to install:
Open a terminal window.
Type
wget http://www.diax.ch/users/liyanage/software/macosx/libphp4.so.gz,
wait for the download to finish.
Type gunzip libphp4.so.gz.
Type sudo apxs -i -a -n php4 libphp4.so
Now type sudo open -a TextEdit /etc/httpd/httpd.conf.
TextEdit will open with the web server configuration file. Locate these
two lines towards the end of the file: (Use the Find command)
Remove the two hash marks (#), then save the file and
quit TextEdit.
Finally, type sudo apachectl graceful to restart
the web server.
PHP should now be up and running. You can test it by dropping a file into
your Sites folder which is called
test.php. Into that file, write this line:
<?php phpinfo() ?>.
Now open up 127.0.0.1/~your_username/test.php in your web
browser. You should see a status table with information about the PHP module.
Php install.macosx.client Function syntax tag
install.macosx.client php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php install.macosx.client syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.