Okay, here is a serious problem.<br><br>I can write a perl script that will store STDIN to a file, but when I try to use PHP to do it, it fails (no error, or anything, but just does not put anything into the file).<br><br>Example:<br>####################################<br>IN PERL -<br>#!/usr/bin/perl<br><br>print "Content-type: text/html\n\n";<br>open(FILEHANDLE,">/path/to/my/file/to/write/file.txt"<br><br>while(<STDIN><br>{<br>$_ = <STDIN>;<br>print FILEHANDLE $_;<br>}<br>close(FILEHANDLE);<br>####################################<br><br>IN PHP (supposedly) -<br><?<br>//STDIN used to be "/dev/stdin" but it has been changed<br>//in the newer releases of PHP<br><br>$stdin = fopen("php://stdin","r"<br>$stuff = fread($stdin,filesize($stdin));<br>fclose($stdin);<br><br>$filename = "/path/to/my/file/to/write/file.txt";<br><br>$stdout = fopen($filename,"w"<br>$finish = fwrite($stuff);<br>fclose($stdout);<br>?><br>####################################<br><br>Anyone know why the Perl version worked, but the PHP version did not?<br><br>Sincerely,<br>Chad.