PHP Web Development and Running PHP application requires a lots of efforts and tools. For running PHP file on web browser we required a compiler which can convert php files to HTML files. And a web server like Wamp helps a php file to convert it to PHP.
Basic Component of WAMP Server are :
Wnodows : Which is our OS.
Apache : Web server for responding with web pages.
MySql : Databases Query
and PHP
you need to be running a lamp / wamp server on your machine... point the browser to the file and it wll run. you can also use command line to run php scrips when you have lamp/wamp installed
Latest by this date is WAMP SERVER 2.1a
Once you install wamp server. Any file with php extenstion like xyz.php you put in www folder will be executed as PHP file.
WAMP stands for Windows Apache Mysql PHP. Mysql is the default database in WAMP
The principle of WAMP/LAMP server is that MySQL, Apache and PHP are staked in a neat package easy to install. However, it is easy to install only the components you need separately.
You would have to disable the IIS service if you want to run localhost for WAMP server.There is a way round it where you can run both IIS & WAMP Server thereby using PHP & ASP.NET both. Just change the port of the WAMP server. Here are the instructions, hope it helpsFind the port number in httpd.conf file. Use the Find functionChange from port number 80 to anything say suppose 8080For files on wamp server use localhost:8080This will let you run both php & ASP.NET on your computer.
Install Apache server.The best solution is to install the latest version of WAMP server (Windows Apache MySQL PHP). You can then open the WAMP folder on your hard drive and locate the WWW folder. Inside of the WWW folder you can store your PHP files.To preview the files open a browser and enter 'http://localhost' to test if the server is working, after testing add the name of a PHP file to the URL, 'http://localhost/myFile.php'.
Assuming you meant windows the OS then you should write it in a text editor such as notepad and save it with the extension .php. You then need to install a web server with PHP installed such as WAMP or XAMPP to run it.
I know a couple: WAMP/LAMP/XAMP
Yes, worked fine for me.
WAMP (Windows, Apache, MySQL, PHP/Perl/Python) WAMP is a form of mini-server that can run on almost any Windows Operating System. WAMP includes Apache 2, PHP 5 (SMTP ports are disabled), and MySQL (phpMyAdmin and SQLitemanager are installed to manage your databases) preinstalled. An icon on the taskbar tray displays the status of WAMP, letting you know if; a) WAMP is running but no services are opened (the icon will appear red), b) WAMP is running and one service is opened (the icon will appear yellow) or c) WAMP is running with all services opened (the icon will appear white). Apache and MySQL are considered to be services (they can be disabled by left-clicking on the taskbar icon, guiding your cursor over the service you wish to disable and selecting "Stop Service"). The files/web pages that are hosted on your WAMP server can be accessed by typing http:/localhost or http://127.0.0.1/ in the address bar of your web browser. WAMP must be running in order to access either of the above addresses. If you would like to share your files/web pages with others, click on the icon located on your taskbar tray and select "Put Online." You must have access to the Internet in order to continue.
Normally one goes though a user interface to make a foreign key in a WAMP server. If this doesn't help one might look to a forum directly related to phpadmin issues.