[SOLVED] Error

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

Post Reply
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

[SOLVED] Error

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

problem solved via IM.. he was running PHP 4.1.1 :lol:
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Which version of PHP are you using!.

*edit* OK I just noticed it was solved!
Post Reply