downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Your first PHP-enabled page> <A simple tutorial
Last updated: Fri, 12 Mar 2010

view this page in

What do I need?

In this tutorial we assume that your server has activated support for PHP and that all files ending in .php are handled by PHP. On most servers, this is the default extension for PHP files, but ask your server administrator to be sure. If your server supports PHP, then you do not need to do anything. Just create your .php files, put them in your web directory and the server will automatically parse them for you. There is no need to compile anything nor do you need to install any extra tools. Think of these PHP-enabled files as simple HTML files with a whole new family of magical tags that let you do all sorts of things. Most web hosts offer PHP support, but if your host does not, consider reading the » PHP Links section for resources on finding PHP enabled web hosts.

Let us say you want to save precious bandwidth and develop locally. In this case, you will want to install a web server, such as » Apache, and of course » PHP. You will most likely want to install a database as well, such as » MySQL.

You can either install these individually or choose a simpler way. Our manual has installation instructions for PHP (assuming you already have some web server set up). In case you have problems with installing PHP yourself, we would suggest you ask your questions on our » installation mailing list. If you choose to go on the simpler route, then » locate a pre-configured package for your operating system, which automatically installs all of these with just a few mouse clicks. It is easy to setup a web server with PHP support on any operating system, including MacOSX, Linux and Windows. On Linux, you may find » rpmfind and » PBone helpful for locating RPMs. You may also want to visit » apt-get to find packages for Debian.



add a note add a note User Contributed Notes
What do I need?
shears dot wayne at googlemail dot com
09-Mar-2009 09:23
Rather than WAMP as suggested above you can use XAMMP which is a very useful tool which is easy to install and run.

You can use this on Windows/Linux/Mac based machines (including vista) to locally test your applications. The secuirty on the server is limited at first and if you set up port forwarding to allow users from the 'outside world' to see you applications you will required to address a few security issues.

But all in all this tool is great to use for Windows users who want to test locally and like a simple install.

URL:
http://www.apachefriends.org/en/xampp.html
jason dot khov at gmail dot com
28-Dec-2008 01:49
Don't worry about installing your own LAMP environment.  (Linux, Apache, MySQL and PHP)

On windows, you can download and install WAMP.  With one installation and you get an apache webserver, database server and php.
http://www.wampserver.com

On mac, you can download and install MAMP.
http://www.mamp.info/

Saves me a lot of headache to do development locally on my computer.

Your first PHP-enabled page> <A simple tutorial
Last updated: Fri, 12 Mar 2010
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites