RE: [PHP] Something wrong with the file() command.

2001-12-03 Thread Mark Charette
From: Jose [mailto:[EMAIL PROTECTED]] $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=fil

[PHP] Something wrong with the file() command.

2001-12-03 Thread Jose
I try to give it a value with a var, but it doesn't work. The code is something like this. $y=str_pad($y,5,".txt"); \\ To give it a filename from a var that contains only 1 number (with 1 digit) If in this step I do a "echo $y, it shows the correct string. Suposing it is 2, it shows 2.txt $temp