I have a question for all you unix/database people out there.
I'll do my best to explain what's happening. In one php file we have some code that opens a pipe and writes to a file:
$pipe = popen("./filename.php < $CGI_PATH/$fname", "r");
In filename.php, there is a line that says:
$fp = fopen("/dev/stdin", "r");
$url = fread($fp, $HTTP_ENV_VARS["CONTENT_LENGTH"]);
Then, back in the first file that opens the pipe, if you try to read through the pipe, it seems to be empty???
In:
while( !feof($pipe)) {
echo "here"
}
Only gets "here" once, when it should be getting there several times. We are out of ideas, other than it must be a server configuration issue. Do any of you have any ideas or know what might affect STDIN??
ANY help would be greatly appreciated, thanks!!!