|
Posted by Ben Hallert on 01/10/07 15:10
(forehead slap)
I just figured it out.
I had trimmed the foreach loop from my original code snippet when I put
it in, then, realizing it would help make it readable, I put it back.
....but instead of putting it back intact, I just retyped it from
memory. It turns out that my foreach loop pushed out a different
variable name, but the $filename string I was using was leftover from a
few lines before.
So, local namespace variables might havesaved my from my own stupidity.
The code works when I actually pass it a variable name that changes.
Whooops....
On the plus side, there's code on Google Groups showing how to read out
the contents of a zip from PHP now, heh.
Regards,
Ben
Navigation:
[Reply to this message]
|