faqts : Computers : Programming : Languages : PHP : Installation and Setup : Operating Systems : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

25 of 34 people (74%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

When I run a PHP script in Windows using PWS, I see a DOS box pop up with the proper code, but no output to the browser.

Mar 10th, 2000 10:17
James G,


1. Make sure you are using http://localhost as the address, not a local 
drive such as "C:". Using a local drive does not transfer data using 
HTTP.
2. Make sure you have set up a virtual directory for your PHP scripts. 
This is done using the Administration function of PWS, under "WWW 
Administration | Directories". Make sure both the "Read" and "Execute" 
check boxes are checked.
3. Make sure you have a "Hosts" file in your "\Windows" directory. If 
you don't find one there, there may be a sample file named "Hosts.sam" 
in that directory.