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.
unable to view test.php
Moderator: General Moderators
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....
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....
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
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
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