Connecting Tech Pros Worldwide Help | Site Map

Set Up PhP of IIS 5.1

  #1  
Old July 17th, 2005, 11:35 PM
Mike Thomas
Guest
 
Posts: n/a
I am new to Php, not to programming. I am trying to set up Php and IIS so
that I can put all of the .html
and .php files into the folder e:\work\phpapp.

Php is installed correctly. When I put the file Journal.html and
JournalResp.php into c:\inetpub\wwwroot everthing works fine.

When I put these 2 files into e:\work\phpapp and try to open them with
Foxfire using localhost\journal.html, I get a file not found error.

In IIS I have made a virtual directory pointing to e:\work\phpapp, and have
set the doc_root in php.ini to e:\work\phpapp.

If I move journal.html to c:\inetpub\wwwroot, journal.html opens
correctly, but the call to JournalResp.php generates a 'no input file'
error.

So, how can I set up IIS/Php to find the files in e:\work\phpapp when I open
them using localhost?

Many thanks
Mike Thomas


  #2  
Old July 17th, 2005, 11:35 PM
Peter van Schie
Guest
 
Posts: n/a

re: Set Up PhP of IIS 5.1


Mike Thomas wrote:
[color=blue]
> In IIS I have made a virtual directory pointing to e:\work\phpapp, and have
> set the doc_root in php.ini to e:\work\phpapp.
>
> If I move journal.html to c:\inetpub\wwwroot, journal.html opens
> correctly, but the call to JournalResp.php generates a 'no input file'
> error.
>
> So, how can I set up IIS/Php to find the files in e:\work\phpapp when I open
> them using localhost?[/color]

This seems more like an IIS issue than a PHP issue, but anyway....
What did you name your virtual directory pointing to e:\work\phpapp?
You should try browsing to
http://localhost/nameofyourvirtualdi...y/journal.html instead of just
http://localhost/journal.html.

--
http://www.phpforums.nl
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
php.ini set up problem mike answers 15 March 10th, 2008 02:55 AM
mysql set up problem Sheldon answers 9 July 20th, 2005 01:10 AM
WinXP/IIS Set up for PHP to parse .html extensions Stuart Baker answers 1 July 17th, 2005 08:33 AM
Installing PHP on XP problems Chucky answers 1 July 17th, 2005 04:17 AM