[PHP] popen() in 4.3.2

2003-06-08 Thread Jeff Harris
My webhost just upgraded to php 4.3.2, and now I have a problem with popen. I'm opening an output buffer then piping it through htmltidy to make nice looking output. ?php ob_start(); // Other unimportant coding goes here $str=addslashes(ob_get_contents()); $fp=popen(echo \ . $str . \ |

Re: [PHP] popen() in 4.3.2

2003-06-08 Thread Philip Olson
PHP 4.3.0-1 has a bug that made your previous code work, have a look at the fread() docs for why, here's a quote: Note: When reading from network streams or pipes, such as those returned when reading remote files or from popen() and proc_open(), reading will stop after a packet is

Re: [PHP] popen() in 4.3.2

2003-06-08 Thread Jeff Harris
Wow. 6 minutes for a response. Of course, I thought my error was in the popen(), not fread(), so I didn't even check there. I've just fixed the code, and it works! Thanks, Philip. On Jun 8, 2003, Philip Olson claimed that: | |PHP 4.3.0-1 has a bug that made your previous code work, |have a look