■
*1225875129*[php]ファイル作成 $fileName = time().".jpg"; $fp = fopen("img/".$fileName, 'wb'); fwrite($fp, $GLOBALS['HTTP_RAW_POST_DATA']); fclose($fp); print $fileName;
Windows環境でバイナリファイルを開く場合には、モードに'b'または't'を追加します。't' は\nを\r\nに変換します。'b'は強制的にバイナリモードにします。このモードは第2引数の最後に追加します。
- 参考URL
http://nyx.pu1.net/function/filesystem/fopen.html
http://un-q.net/2007/07/wcan_mini_actionscript_vol3_4.html