ID: 36101 Updated by: [EMAIL PROTECTED] Reported By: jackkempes at hotmail dot com -Status: Open +Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: 2.6.12-1.1456_FC4smp PHP Version: 5.1.2 New Comment:
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2006-01-20 14:22:08] jackkempes at hotmail dot com Description: ------------ copy, chmod , fopen will not work ! Reproduce code: --------------- <?php $filename='/filet/possu.txt'; if (is_writable($filename) && is_readable($filename) && is_executable($filename) ) { echo 'kirjoitus,luku ja suoritus'; $fp=fopen("$filename","w"); fwrite($fp,"paskajuttu"); fclose($fp); } else { echo 'ei voi kirjoittaa'; } ?> Expected result: ---------------- kirjoitus,luku ja suoritus Warning: fopen(/filet/possu.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/html/aja.php on line 5 Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/aja.php on line 6 Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/aja.php on line 7 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36101&edit=1