Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_POST){
- $txt = array();
- $i = 0;
- foreach ($_POST as $key => $value) {
- // $txt[] = print_r($value, true);
- $h = dirname (__DIR__).'/glop/productos/'.time ()."-".$i++.'.xml';
- file_put_contents($h, $value);
- break;
- }
- // file_put_contents($h, implode("", $txt));
- }
- if($_GET){
- $h = dirname (__DIR__).'/glop/productos/'.time ().'2.txt';
- // file_put_contents($h, print_r($_GET, true));
- $txt = array();
- foreach ($_GET as $key => $value) {
- $txt[] = "$key:: "."\n".print_r($value, true);
- }
- file_put_contents($h, implode("\n----\n", $txt));
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement