| 123456789101112131415161718 |
- <?php
- /* PUT data comes in on the stdin stream */
- $putdata = fopen("php://input", "r");
- /* Open a file for writing */
- $fp = fopen("mysql_import/".$_GET["file"], "w");
- /* Read the data 1 KB at a time
- and write to the file */
- while ($data = fread($putdata, 1024))
- fwrite($fp, $data);
- /* Close the streams */
- fclose($fp);
- fclose($putdata);
- ?>
|