How do you open a php file that was saved in notepad?
I found a simple php script that I wanted to run and I saved the php script in notepad and saved it as xxxx.php and all files……but …..what program do I need to use to open that file and run the script?
Thanks
August 7, 2010 | Filed Under Scripts FAQs
Comments
4 Responses to “How do you open a php file that was saved in notepad?”
Powered by Yahoo! Answers
You need to open that file with an internet browser. So, right-click the file, then click on "Open With," and select your internet browser– Internet Explorer, for instance.
1. First download the xampp from http://www.apachefriends.org/en/xampp.html
2. Extract the file and double click the exe. This will install Mysql and Apache servers.
3. Once the installation is complete, you will find XAMPP under Start / Programs / XAMPP. You can use the XAMPP Control Panel to start/stop all servers. Start Mysql and Apache servers.
4. Copy your .php file in to C:/Program Files/XAMPP/htdocs/
5. To run the php file, you just need to brows http://localhost/test.php
Basically you need a web server with php and for example MySQL depending if you want to implement database usage also. An all in one package that you can install locally for windows is Easyphp. Try it out it is fairly intuitive and easy to use:
http://www.easyphp.org/
Install WAMP server and copy your script to the webroot. open with browser http://localhost/scriptname.php