IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to open PHP files in web browser?
favian
post May 17 2004, 05:41 AM
Post #1


Junior Member


Group: Members
Posts: 25
Joined: 1-April 04
Member No.: 639



Hi. I recently installed IIS on my comp and installed PHP after that. I went to Internet Information Services and opened the Properties of the Default Website. Under the Home Directory tab, I changed the Execute Permissions to Scripts and Executables. After which I was able to open .php files such as one with the following script:

<?php phpinfo(); ?>

However today I tried opening .php files from my browser and instead of displaying the results of the script, it opens the .php as a text file in notepad. Can anybody tell me what's wrong?? What must I do so that the browser won't open my .php files in notepad? Thanks. sad.gif
Go to the top of the page
 
+Quote Post
Bluefin221
post May 17 2004, 12:55 PM
Post #2


Not So Junior Member


Group: Members
Posts: 145
Joined: 21-January 04
Member No.: 430



They always open in notepad as if you are going to edit them - if you are trying to view them as webpages I'm not sure how thats done as PHP links together from many different pages.
Go to the top of the page
 
+Quote Post
dreamer
post May 17 2004, 03:02 PM
Post #3


Junior Member


Group: Members
Posts: 26
Joined: 3-September 03
Member No.: 269



recheck your IIS execution permissions...
If everything is fine then try checking the attributes of the php files you are trying to view with your web browser.

Is about as much as I can help...

also, have you installed the cgi version of apache?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 21st November 2014 - 08:05 PM