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
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
2 matches
Mail list logo