Page 1 of 1

[SOLVED] Error

Posted: Sun Aug 29, 2004 12:44 pm
by SidewinderX
hello i was wondering if some one could spot the error cuz i cant

Code: Select all

<?php
$content = file_get_contents($url); 

print "<form><textarea name="source" rows="15" cols="100">$content</textarea></form>"; 

print "Enter a FULL URL to view the source of:<br><form name="url_submit" action=$PHP_SELF method="post"><input type="textbox" name="url" value="http://"><input type="submit" name="submit" value="Get Source">"; 

?>
and this is the error
Fatal error: Call to undefined function: file_get_contents() in d:\www\gamehosting\phpform.php on line 2
All help is appreciated, thanks in advanced.

Posted: Sun Aug 29, 2004 12:57 pm
by feyd
problem solved via IM.. he was running PHP 4.1.1 :lol:

Posted: Sun Aug 29, 2004 12:57 pm
by Joe
Which version of PHP are you using!.

*edit* OK I just noticed it was solved!