PDA

View Full Version : php include file on network drive?


homerUK
03-31-2006, 09:21 AM
hi..
I've recently setup apache with an alias to my network drive, so when I type

localhost/work/

it will fetch the network address

//marge/share/www/

when I type

localhost/work/index.php

I get the following error:

Warning: Failed opening '//marge/share/www/index.php' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0

Is there a setting in PHP which I need to change for it to have access to my drive? or am I missing something??

(the index.php file has "hello" as the contents.. that's all!)

thanks for any help

ecnarongi
03-31-2006, 05:20 PM
I am assuming your file looks like


<?php echo "Hello"; ?>


I am not sure why your server isn't working right, I will assume that you have set-up the file association correctly; the file is in the right folder; your server is running; and php is installed (and pear, I see that in your error)

Someone I worked with had a similar problem like what you have stated and it was a simple fix, like reinstalling or a missing package, or one of the above was not true.