![]() | | ||||||||
| | #1 |
| Active Warrior Join Date: Oct 2009
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
|
I want to see php files in my computer before uploading it to server. Is it possible? How can I do it? |
| | |
| | #2 |
| Warrior Member War Room Member Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 4 Times in 2 Posts
|
It's possible, but your going to have to install PHP on your localhost.
|
| | |
| | #3 |
| Senior Warrior Member War Room Member Join Date: Apr 2006 Location: , , USA.
Posts: 2,433
Thanks: 40
Thanked 155 Times in 148 Posts
|
If this is on a Windows PC you could install WAMP, Install PHP 5 Apache MySQL on Windows : WampServer On a Mac MAMP, MAMP: Mac, Apache, MySQL, PHP |
| | |
| | |
| | #4 |
| Freelance Warrior Join Date: Jul 2009 Location: USA
Posts: 235
Thanks: 1
Thanked 10 Times in 10 Posts
|
I've been using WAMP on my local computer for about 2 years now and it's been very useful for me. It allows me to view an editted site offline before uploading on the web
|
| | |
| | |
| | #5 |
| HyperActive Warrior War Room Member Join Date: May 2009
Posts: 319
Thanks: 36
Thanked 23 Times in 20 Posts
|
If its windows you can install quickphp which is a very small, easy to install lightweight php web server.
|
| Marketing Strategies app now in the app store
| |
| | |
| | #6 | |
| HyperActive Warrior Join Date: May 2008 Location: USA
Posts: 249
Blog Entries: 22 Thanks: 9
Thanked 29 Times in 27 Posts
| Quote:
You can edit PHP files before uploading to a web server, just do it with Notepad or your favorite text editor. But if you want to see the results of a PHP file the way it looks on your website, you have to remember that PHP is mostly processed by the web server before it displays to the visitor's web browser. That's why you have load your own PHP web server on your laptop or desktop, if you want to see what a PHP file looks like without uploading. Be aware that you will need the same "stuff" on your local server that you have on the official web server. "Stuff" like PHP includes, images, Javascript .js files, and possibly the same version of PHP, if you want to duplicate a similar result for offline testing. I think the recommendations given earlier are excellent choices. Let us know if you run into any problems or errors. Thanks! | |
| Exciting comment opportunities on my WF blog: (1) Better money with better marketing (2) Forming strong customer bonds (3) Earn more money with DB marketing (4) Building a revenue and profit model | ||
| | |
| | #7 |
| Active Warrior Join Date: Aug 2009
Posts: 30
Thanks: 2
Thanked 3 Times in 3 Posts
|
download and install free software's WAMPserver run the software, keep your php files in www folder, type in your browser address bar localhost and hit enter you can see your files output in browser |
| | |
| | #8 |
| Ultimate Warrior Join Date: Sep 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
| Yes, if your OS is Windows you should have a Apache, PHP and MySQL. If your those three, put your PHP files in htdocs folder. If your site has database your MySQL should it open in command prompt, it not you can browser your PHP file in your browser in you PC.
|
| | |
| | |
![]() |
|
| Tags |
| files, php, server, uploading, view |
| Thread Tools | |
| |
![]() |