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 . "\" | /bin/tidy - config /my/home/htmlrc", "r"); @$newstr=fread($fp, 999999); ob_end_clean(); header("Last-Modified: " . $gmt_modtime); header( "Content-length: " . strlen( $newstr ) ); echo stripslashes($newstr); ?> This code worked perfectly before the upgrade, now "strlen( $newstr )" is only getting back 4096 bytes. Is anybody else having this issue, and how can I fix this? I don't see any configuration setting that looks like it fits to this situation. It is running under redhat with Apache/1.3.27 Thanks, Jeff -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED Responses to this message should conform to RFC 1855. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php