|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-17 14:06 UTC] dev at sonicunion dot co dot uk
[2003-02-17 16:42 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 07:00:01 2025 UTC |
Using the code: <?php $file = fopen("test_index.php", "rb"); $openedfile = fread ($file, filesize ($file)); $string = addslashes ($openedfile); eval ("\$string=\"$string\";"); $string = stripslashes ($string); ?> On my machine, it triggors the error: Warning: stat failed for Resource id #1 (errno=2 - No such file or directory) in c:\php\www\sonicunion_beta\\run.php on line 5 When error is surpressed, with @, the file read is not evaled. No other errors occur. Specs: Win98; Apache 1.3.2; PHP4.2.3;