English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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.?

2007-01-06 05:09:52 · 7 answers · asked by Jose O 1 in Computers & Internet Programming & Design

7 answers

See following webpages
http://www.plus2net.com/asp-tutorial/iis-localsite.php
http://www.webcheatsheet.com/php/install_and_configure.php

2007-01-06 05:26:22 · answer #1 · answered by V 5 · 0 0

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 http://php.net/ 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.

2007-01-06 07:40:19 · answer #2 · answered by csanon 6 · 0 0

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

2007-01-06 05:41:35 · answer #3 · answered by I.M. 2 · 0 0

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
http://www.apachefriends.org/en/xampp-windows.html

I prefer to download 7-zip file that can directly download it by this link:
http://www.apachefriends.org/download.php?xampp-win32-1.5.5.exe

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
http://127.0.0.1/yourfile.php

I hope this answer be useful for you

2007-01-08 20:46:15 · answer #4 · answered by sepehr 2 · 0 0

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

2007-01-06 05:30:13 · answer #5 · answered by Moein 3 · 0 0

all u need to do is install a complier on the pc.
http://www.softpedia.com/get/Programming/Coding-languages-Compilers/PHP-for-Windows.shtml

2007-01-06 05:12:27 · answer #6 · answered by Paultech 7 · 0 0

this is a very nice one!
http://www.wampserver.com/

2007-01-06 05:18:43 · answer #7 · answered by Owenray 1 · 0 0

fedest.com, questions and answers