Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I view a PHP script in windows?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can I view a PHP script in windows without uploading it to an server. I have tryed to open it in IE5.5 but i just got the title of the page, the rest was just white...
 
Your browser was designed to read HTML only. If it needs to read something else (PHP, Perl, ColdFusion, ASP, etc.) it needs the interpreter. I'm guessing you don't have PHP installed on your machine, so your browser has no idea what to do with a .php file.

When the .php file is on the web server, a request comes in and the web server recognizes that it is a PHP file so it gives it to the PHP interpreter to translate first. Then it gets sent to the user. On your machine, though, there is no web server or PHP interpreter so your browser is just making a wild guess. Thus the white page.
 
There are some IDE's out there that will work, but none that are very good. These also cost a bit of money. I'm working on a promising and free IDE, but at the rate my school work is building, it'll be a while. -gerrygerry
Go To
 
Nope, it's pretty easy! Install php3/4, if you don't already done it. Install the microsoft personal web server. You can download it for free or take it from your win98/me CD. After a correct install you can check your php files on your own server.

localhost/mysite/index.php3

Note that the PWS comes without ftp function, so you need warftp or something similar to test file handling.

Have fun.

</imagetag>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top