note 24257 added to function.fopen

From: Date: Sat, 10 Aug 2002 22:49:21 +0000
Subject: note 24257 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-34790@lists.php.net to get a copy of this message
im tryin to open a text file in a table using fopen: <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> <tr bgcolor="#9999cc"> <td align="center" rowspan="2" width="120"> <?PHP $fp = fopen ("$path.txt", "r"); include("$fp"); ?> </td> </tr> </table> to open the text file i saved this php file into the same folder the text file is in so i used this url: http://www.pureevil.d2g.com/port/test1.php?path=gfx i get this error Warning: Failed opening 'Resource id #1' for inclusion (include_path='.;c:\php4\pear') in d:\appserv\www\port\test1.php on line 8 whats wrong? -- http://www.php.net/manual/en/function.fopen.php http://master.php.net/manage/user-notes.php?action=edit+24257 http://master.php.net/manage/user-notes.php?action=delete+24257 http://master.php.net/manage/user-notes.php?action=reject+24257

« previous php.notes (#34790) next »