Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- $cont = @$_REQUEST['cont'];
- if($cont=='') $cont = 0;
- $cont++;
- $filename = '/home/massimo/foto/'. $cont .'.png';
- echo $filename;
- //copy('https://www.facebook.com', $filename);
- //Get the file
- $content = file_get_contents("http://www.google.co.in/intl/en_com/images/srpr/logo1w.png");
- //if ($content == False) echo "no";
- //if ($content == Null) echo "null";
- //Store in the filesystem.
- $fp = fopen($filename, "w");
- fwrite($fp, $content);
- fclose($fp);
- //$content = Null;
- echo "<form action='incrementa.php' method='post'>
- <input type='hidden' name='cont' value='$cont' />
- <button onclick='document.forums[0].submit()'>Snapshot</button>
- </form>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement