Being a complete PHP newbie, I've been mucking around creating some scripts over the last couple of days that include uploading files to the server using forms. Anyway, I upload the scripts to my free web space at f2s.com and get ...
Warning: SAFE MODE Restriction in effect. The script whose uid is 120973 is not allowed to access /tmp/phpAliTgH owned by uid 0 in ...
Bummer - I didn't know anything about SAFE MODE before seeing this. Duh, I should have guessed that a virtual hosting provider is not going to give you access to /tmp !
Those out their writing PHP tutorials that include file upload should let the user know the big caveat that this is not going to work on a server where SAFE MODE is on!
UPDATE:
Well, I've worked out that I you can bypass SAFE MODE by running the script in CGI. There is a faq at f2s.com that explains this : P~~ Of course this breaks my session tracking - oh well.
<Edited by freakysid on 02-02-2001 at 03:48 AM>
Bookmarks