View Full Version : Problem with this

05-05-2004, 01:14 PM
$url = "http://blahblahblah.com";

$lines = file('$url');

It is literally trying to access http://$url and gives this error:

Warning: file($url): failed to open stream: No such file or directory in /home/domains/blah.com/user/htdocs/blah/blah.php on line 8

How do I fix this?

05-05-2004, 02:29 PM
u have to use double quotes

05-05-2004, 04:00 PM
... preferably no quotes ...

<?file( $url ) ;?>

+ please try and give a better thread title , I know its a hard one to pin a title to but I thought the question was about objects !

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum