Posted by ScareCrowe on 07/09/05 17:48
Okay, I figured out that the file() func is adding the newline to the
variable, so switch() is not matching.
I have tried using trim(), rtrim(), str_replace() etc but none of these func
will eliminate the newline. I modified the script to use file_get_contents()
and then used explode() to separate the lines. This seems to be the harder
way of doing it to me. If anyone knows a working way to eliminate the
newline from the file() func return, please post it!
--ScareCrowe
[Back to original message]
|