Subscribe To RSS

How can I run a php script in my own computer offline?

Written by ScriptInstaller on November 22nd, 2009

Jose O asked:

This was my first php script tht i made myself. But I am still a novice on php and I just can’t run the script on my computer offline. Can somebody help me.?


Related Blogs

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Tags: , , , ,

7 Comments at "How can I run a php script in my own computer offline?"

Anonymous November 23rd, 2009 (#)

all u need to do is install a complier on the pc.

Anonymous November 24th, 2009 (#)

this is a very nice one!

Anonymous November 27th, 2009 (#)

See following webpages

Anonymous November 28th, 2009 (#)

yes you can run php script on your pc ,as well as runing asp.net code offline

Anonymous November 28th, 2009 (#)

U ‘ll just have to download this software easyphp 1-7 and install it then run the program and enable the appachi server
now Ur PC is a server while U R offline
put Ur file in this path “c://program files/easyphp1-7/www/”
then open Ur browser and go to the address “http://localhost/filename.php/” while U R offline
Ur page will be displayed :D

Anonymous November 30th, 2009 (#)

Other answerers: Don’t answer if you can’t explain yourself properly.

PHP scripts need to be run through a webserver running the PHP interpreter. So first get a webserver. The standard and most common is Apache (http://apache.org/ ). You want the HTTP server. You’ll need to install PHP on it, so get it at Install PHP and now you can run php scripts on the server.

Google for tutorials on setting up Apache with PHP if you need more information. If this still seems like too much work, try XAMPP (http://www.apachefriends.org/en/xampp.html ) although it is definitely unsuitable for production usage and advanced or specialized development machines.

Anonymous December 1st, 2009 (#)

For running your script on your computer you need a web server.
Personally I’m using xampp that is a combination of Apache as a webserver, mysql as popular database and a ftp and mail server.

To use this you can download it from

I prefer to download 7-zip file that can directly download it by this link:

After downloading execute the file to make xampp folder and then run setup_xampp.bat on that folder.

to start web server use xampp-control.exe and start the apache with the button in front of its name.

All think is ready to use just copy your file to htdocs folder and in you browser(for example IE) type

I hope this answer be useful for you