Connecting Tech Pros Worldwide Forums | Help | Site Map

Set Up PhP of IIS 5.1

Mike Thomas
Guest
 
Posts: n/a
#1: Jul 17 '05
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



Peter van Schie
Guest
 
Posts: n/a
#2: Jul 17 '05

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