-=GogA[qwe]=-
Guest
Help! Скрипт с fopen и while на серваке выдает ошибку...
У меня все работает, а на серваке...
Строки: 84-86, 300...
Выдает
Warning: fopen(data/log.dat): failed to open stream: Permission denied in *** on line 84
Warning: fwrite(): supplied argument is not a valid stream resource in *** on line 85
Warning: fclose(): supplied argument is not a valid stream resource in *** on line 86
И Fatal error: Call to a member function on a non-object in *** on line 301
У меня все работает, а на серваке...
Строки: 84-86, 300...
PHP:
$flog = fopen("data/log.dat", "a");
fwrite($flog, ">".$name." pasw ".date("Y.m.d H:i:s",time())."\r\n");
fclose($flog);
PHP:
$d = dir($path);
while (false !== ($entry = $d->read()))
if (($entry!="..")&&($entry!="."))
{ //и т д
Warning: fopen(data/log.dat): failed to open stream: Permission denied in *** on line 84
Warning: fwrite(): supplied argument is not a valid stream resource in *** on line 85
Warning: fclose(): supplied argument is not a valid stream resource in *** on line 86
И Fatal error: Call to a member function on a non-object in *** on line 301