Page 1 of 1
unable to view test.php
Posted: Tue Oct 05, 2004 11:42 am
by wood1e
Hi,
I hope I have selected the right forum for this question.
I have just installed Apache, and PHP, and made the adjustments that need to be made, I hope!!!
Anyway, I opened up notepad, and created test.php, and saved it in the htdocs folder. On doing this the .php file, had the dreamweaver logo on it, when I went to IE to open up test.php, a window open requesting whether I wanted to open or save, I selected save, and the test.php, opened up in Dreamweaver.
Can anyone explain this? I have obviously missed something in installation.
Posted: Tue Oct 05, 2004 11:54 am
by Draco_03
??
I'm not quite understanding what you mean, but mhh just drag and drop your test.php in a browser after yous aved and close notepad
it should work
Posted: Tue Oct 05, 2004 12:09 pm
by wood1e
Hi, I created a .php file as were the instrustions to test whether I had installed PHP correctly. So I did this, and saved the file into HTDOCS, as the instruction stated.
I have Dreramweaver installed on my pc, and at no point did I go anywhere near it whilst installing Apache and PHP.
But as soon as I saved the text file as TEST.PHP, the file had a Dreamweaver logo on it, as in a word document has the Word 'W' on it, and whether I drag and drop it into my browser or type into my browser, /localhost/test.php,
I am asked as to whether I wish to save or open the file, if I select open the PHP file is opened in Dreamweaver. If I seletct save, i just get ask where do I want to save it.
I hope this clears things up a little....
Posted: Tue Oct 05, 2004 12:35 pm
by feyd
This is a configuration problem in your web server. This thread has been moved there.
Posted: Tue Oct 05, 2004 12:47 pm
by wood1e
Many thanks, sorry for any inconvenience
Posted: Tue Oct 05, 2004 12:50 pm
by feyd
did you follow the php installation instructions for Apache? Did you remember to restart the service? What changes did you make to the httpd.conf? Have you checked the error log file to see if something didn't start correctly?
Posted: Wed Oct 06, 2004 2:46 am
by twigletmac
The Dreamweaver icon just means that .php files are associated with Dreamweaver - check Windows help for how to change this if you want to open them in another editor.
In your browser you are trying to access
http://localhost/test.php ? If you are and Dreamweaver is being launched then .php files are not associated with PHP in your webserver (this is different to the above which is associating .php files in the filesystem) and are thus defaulting to the filesystem association - Dreamweaver.
Mac