On Mon, Mar 14, 2011 at 21:12, Jack <JackListMail@xxxxxxxxx> wrote: > Hello All, > > > > Im writing a script that creates a temp file which it then encrypts and > sends out in an email. > > This works 100% on servers that don't have safe mode, but this server with > safe mode doesn't understand it's all the same user. > > Error: > > Mon Mar 14 21:10:11 2011] [error] [client 14.18.8.43] PHP Warning: fopen() > [<a href='function.fopen'>function.fopen</a>]: SAFE MODE Restriction in > effect. The script whose uid is 50069 is not allowed to access > /tmp/A1_mYM5q5 owned by uid 48 in > > > > Any suggestions? 1.) Write to a local directory (though, if it's UID 48, that's probably httpd, apache, or nobody anyway, so it still may not work). 2.) Write to a database. 3.) Don't write anything at all, and work entirely from memory. 4.) Move to a different web host (unless this is a script you're distributing, whereby that may not be a viable option). -- </Daniel P. Brown> Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php