Re: [PHP] Going nuts with this, cant figure out whats the prob

2006-05-15 Thread Ryan A
Hey Chris / Richard, I was wondering if the different line endings (dos/unix) might play a factor but I doubt it. Chris: Ok, that really helped, I was testing the test.txt file on my Win2k machine and was testing the whole script on a FreeBSD machine... so I took the small test and upped it

Re: [PHP] Going nuts with this, cant figure out whats the prob

2006-05-15 Thread Richard Lynch
On Mon, May 15, 2006 7:30 am, Ryan A wrote: The thing is, I thought this was bundled with the standard package of PHP, if yes, why would anybody want to turn this off? PCRE got added after POSIX Regex had been in awhile. There was some resistance to having two Regexes in PHP. I think the

Re: [PHP] Going nuts with this, cant figure out whats the prob

2006-05-15 Thread Ryan A
Hey, On Mon, May 15, 2006 7:30 am, Ryan A wrote: The thing is, I thought this was bundled with the standard package of PHP, if yes, why would anybody want to turn this off? PCRE got added after POSIX Regex had been in awhile. There was some resistance to having two Regexes in PHP.

[PHP] Going nuts with this, cant figure out whats the prob

2006-05-14 Thread Ryan A
Hi, This is my script: (ryan_debug_write_to_file is my debug function that writes stuff into a txt file instead of using a print(), its working without a problem) -- $stdin = fopen('php://stdin', 'r'); while ($line = fgets($stdin)) { $line=trim($line);

Re: [PHP] Going nuts with this, cant figure out whats the prob

2006-05-14 Thread Chris
Ryan A wrote: Hi, This is my script: (ryan_debug_write_to_file is my debug function that writes stuff into a txt file instead of using a print(), its working without a problem) -- $stdin = fopen('php://stdin', 'r'); while ($line = fgets($stdin)) {

Re: [PHP] Going nuts with this, cant figure out whats the prob

2006-05-14 Thread Richard Lynch
On Sun, May 14, 2006 7:51 pm, Ryan A wrote: -- $stdin = fopen('php://stdin', 'r'); while ($line = fgets($stdin)) { $line=trim($line); ryan_debug_write_to_file('In while(),STDIN, Start..'.$line.'---End '); You *DO* see this bit in the log right?...