...

View Full Version : Problem with this



Richard
05-05-2004, 02: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?

o0katz0o
05-05-2004, 03:29 PM
u have to use double quotes
file("$url");

firepages
05-05-2004, 05: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