[thelist] PHP upload files
Andrew Forsberg
andrew at thepander.co.nz
Fri Sep 21 17:15:30 CDT 2001
Sorry, I'm a little confused by the situation: are you trying to
allow someone to edit a file on the server? or upload a file to the
server for editing?
Either way, it looks a bit like php is recognizing that you're
opening a file local to the server, and preventing you from accessing
anything outside a directory specified by the open_basedir directive
in the php.ini file
(http://www.php.net/manual/en/html/configuration.html). Although, by
default, open_basedir is configured to allow php to access anywhere
(as long as it has appropriate filesystem permissions).
I don't know jack about IIS, you're probably right that it's causing
the trouble, but the first thing I'd check in this case would be the
php.ini file.
Best
Andrew
>I'm working on some scripts on my workstation/development machine (IIS 5,
>Win 2K, PHP 4.0.5) and can't get my form to accept a file as input. The
>symptoms are:
>1) selecting a file from a directory mapped as a source directory to a IIS
>virtual folder: the file is opened for reading.
>2) selecting a file from anywhere else in my computers dir structure: unable
>to open the file
>
>I don't know that much about IIS, but I think that has to do with it...The
>PHP config options that look like they may play a role here are:
>ALLUSERSPROFILE C:\Documents and Settings\All Users.WINNT
>USERPROFILE C:\Documents and Settings\Default User.WINNT
>
>Any thoughts? I haven't tried it on the server yet...MySQL is broken on the
>server and the app doesn't let you get that far without using the DB...
>
>thanks,
>John
--
Andrew Forsberg
---
the pander - http://thepander.co.nz/
uberNET - http://uber.net.nz/
More information about the thelist
mailing list