I have a login PHP script (that does not use database) that when the password is correct, writes a loggedin.txt file. the PHP script is inside the user directory (which is CHMODED to 777) but it won't write the .txt file, this also has happened when my signup PHP script tries to make a directory. Is there something wrong with zymic? here is the login php file, and the error I get.
Error:
CODE
Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 182508 is not allowed to access /www/vndv.com/b/d/c/bdcadmin/htdocs/BDCjv90 owned by uid 2001 in /www/vndv.com/b/d/c/bdcadmin/htdocs/BDCjv90/password.php on line 4

Warning: fopen(loggedin.txt) [function.fopen]: failed to open stream: No such file or directory in /www/vndv.com/b/d/c/bdcadmin/htdocs/BDCjv90/password.php on line 4
CAN'T LOGIN, PLEASE CHMOD PHP TO 777

PHP:
CODE
<?php
if ("$_REQUEST[passchar] == 1q2w3e4r5") {
$myFile = "loggedin.txt";
$fh = fopen($myFile, 'w') or die("CAN'T LOGIN, PLEASE CHMOD PHP TO 777");
$stringData = "User is Logged in";
fwrite($fh, $stringData);
fclose($fh);
echo '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img src=http://bdcadmin.vndv.com/BDC.bmp /> <br> <br> Password Correct! Your homepage is <a href=home.php>here </a>';
} else {
echo '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img src=http://bdcadmin.vndv.com/BDC.bmp /> <br> <br> Password Incorrect! <a href=http://bdcadmin.vndv.com/>Try Again</a>';
}
?>