Beginner question?
| From: | jtjohnston | Date: | Fri, 21 Dec 2001 05:13:04 +0000 |
| Subject: | Beginner question? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-78411@lists.php.net to get a copy of this message | ||
This seems newbie. So what am I doing wrong? I want to print the
contents of the file. I get resource id #1 instead. Do I need to add a
header or what?
<?php
//$fp = fopen ("C:/Program Files/localhost/info.txt", "r");
//$fp = fopen ("http://compcanlit.ca/",
"r");
$fp = fopen ("./info.txt", "r");
print $fp;
fclose($fp);
?>