RE: [PHP] Something wrong with the file() command.
| From: | Mark Charette | Date: | Mon, 03 Dec 2001 17:48:10 +0000 |
| Subject: | RE: [PHP] Something wrong with the file() command. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76398@lists.php.net to get a copy of this message | ||
From: Jose [mailto:josefga@olinet.es]
$temp[]=file($y); \\ To load the file into the array.
-------------------
file() returns an array! So, you ended up with an array ($temp) with element
0 an array (returned from file() ). Read the manual very carefully ...
You probably meant to say
$temp=file($y); // To load the file into the array.
(watch those '//'s, too!)
mark C.