PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
SidewinderX
Forum Contributor
Posts: 407 Joined: Fri Jul 16, 2004 9:04 pm
Location: NY
Post
by SidewinderX » Sun Aug 29, 2004 12:44 pm
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.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Aug 29, 2004 12:57 pm
problem solved via IM.. he was running PHP 4.1.1
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Sun Aug 29, 2004 12:57 pm
Which version of PHP are you using!.
*edit* OK I just noticed it was solved!