Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

safe mode?

Status
Not open for further replies.

mkzw0ot4m0nk

Programmer
Jul 19, 2002
29
US
hey im creating a php aim profile service just for fun (still learning php) well i keep getting this error when i try to create a account..

Warning: SAFE MODE Restriction in effect. The script whose uid is 2016 is not allowed to access / owned by uid 0 in /home/mkzmonkeylagger/public_html/profileservice/new.php on line 14

Warning: fopen("/users/mkzw0ot4m0nk/pass.php", "w") - No such file or directory in /home/mkzmonkeylagger/public_html/profileservice/new.php on line 14

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/mkzmonkeylagger/public_html/profileservice/new.php on line 15

Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/mkzmonkeylagger/public_html/profileservice/new.php on line 16

and here are some lines around line 15..

mkdir ("$dir", 0777);
$passfile = fopen("/users/$sn/pass.php", "w");
fwrite($passfile,&quot;<? \$mypass = \&quot;$pass\&quot;; ?>&quot;);
fclose($passfile);
echo &quot;<p>$sn created, click <a href=\&quot;profile.php\&quot;>here</a> to login!</p>&quot;;




thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top