Forum Moderators: coopster
code:
<?php
$file = fopen("/home/gamesjet/public_html/test.txt", "a+");
if ($stream = fopen('http://www.example.net', 'r')) {
// print the first 5 bytes
$contents = stream_get_contents($stream, 100000);
echo $contents;
$post = file_put_contents($file, $contents);
echo $post;
fclose($stream);
?>
Parse error: syntax error, unexpected $end in /home/gamesjet/public_html/proxy/index.php on line 15
heres my code:
<?php
$file = fopen("/home/gamesjet/public_html/test.txt", "a+");
if ($stream = fopen('http://www.example.net', 'r')) {
// print the first 5 bytes
$contents = stream_get_contents($stream, 100000);
echo $contents;
$post = fwrite($file, $contents);
echo $post;
fclose($stream);
?>