PDA

View Full Version : Upload file problem


John Lim
03-24-2001, 02:31 PM
Hello,

I am trying to use PHP to upload files. I get the upload file path set to /big/xdom/tmp/something.

I try to fopen() the file and the function call fails. I notice that PHP4 sessions are working though, so am I missing something? Is it something to do with safe-mode?

Thanks for all your help in advance.

John

Arthur
03-24-2001, 02:35 PM
Did you read this thread?; http://www.aota.net/ubb/Forum15/HTML/000671-1.html
--
Arthur

jr
03-24-2001, 05:35 PM
Makes me wonder why the PHP developers can't make fopen() work like:

if (is_uploaded_file($filename))
[nbsp][nbsp] // always allow the file to be opened
else
[nbsp][nbsp] // enforce safe mode restrictions

That sure would make things a lot easier, without sacrificing security...

John Lim
03-25-2001, 03:54 AM
Thanks for the tip, Arthur. I haven't tried it yet, but it looks like that should be the trick.

-- John