How Do You Test A Php File On Windows When It Requires A Mysql Database To Read From?
Specifically, I want to be able to view and run a website that is programmed in PHP (on windows) before I upload it to my site. But of course you know that you can’t view php pages that are reading from a MySQL database by just viewing it from a local folder on your computer like you do html pages… How would I go about doing this on my computer while offline?
Related posts:
- How To Use Php Code Stored In Mysql Database? I know how pull data from the database but I...
- How Do I Plan My Php Mysql Database? I have a fairly detailed plan of the content and...
- What Sort Of Php Templates Are Available For Displaying Mysql? I have a MySQL database and a website. I want...
- What Is The Easiest Way To Practise Using Php And Mysql? I want to start using PHP and mySQL to help...
- How To Connect Mysql Database With Flash Via Php? I want to connect my fla file with mysql database...
Related posts brought to you by Yet Another Related Posts Plugin.
Tags: Database, file, From, MySQL, Read, Requires, Test, When, Windows


June 25th, 2009 at 11:27 pm
Sure you can view, test, edit, etc Databases on your own computer, as well as view and edit PHP files.
You need to install a local test server on your machine in order to do all of this. Along with a test server is a compatible SQL server.
I would recommend downloading XAMPP from http://www.apachefriends.org
It is auto-installing, simple to setup and understand.
Once you set it up, you can start editting and testing, then upload your final version to your destination online.
Hope this Helps! Best of Luck!
June 25th, 2009 at 11:27 pm
copy the file to the root folder and run using local host
June 25th, 2009 at 11:27 pm
Install WAMP (Windows Apache MySQL PHP)