unable to view test.php

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
wood1e
Forum Newbie
Posts: 7
Joined: Tue Oct 05, 2004 11:39 am

unable to view test.php

Post 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.
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post 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
wood1e
Forum Newbie
Posts: 7
Joined: Tue Oct 05, 2004 11:39 am

Post 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....
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

This is a configuration problem in your web server. This thread has been moved there.
wood1e
Forum Newbie
Posts: 7
Joined: Tue Oct 05, 2004 11:39 am

Post by wood1e »

Many thanks, sorry for any inconvenience
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Post Reply