file doesn't open using PHP fopen

Posted by jesop on Stack Overflow See other posts from Stack Overflow or by jesop
Published on 2010-03-09T11:27:34Z Indexed on 2010/03/09 11:36 UTC
Read the original article Hit count: 572

Filed under:
|

i have tried this:

    <?php
$fileip = fopen("test.txt","r");

?>

this should have opened the file in read only mood but it doesn't the test.txt file is in same folder as that of index.php (main project folder)

the file doesn't open

and when i put echo like :

echo $fileip;

it returned

Resource id #3

© Stack Overflow or respective owner

Related posts about php

Related posts about fopen