I've been working on this for hours, and i keep getting the same error.
I am trying to grab the content from a file on my own server.
The page I request has a variable passed, and it wasn't working with include so i decided to try implode file.
The error includes the file that php says can't be found, but if I copy that url from the error, and then past it into the address bar, the page comes up no problem.
Anybody know why this isn't working?
My code is here. error below
the error is
any ideas on this?
Should i be able to use 'include' with parameters? and is it faster than my using implode?
thanks,
Pete
I am trying to grab the content from a file on my own server.
The page I request has a variable passed, and it wasn't working with include so i decided to try implode file.
The error includes the file that php says can't be found, but if I copy that url from the error, and then past it into the address bar, the page comes up no problem.
Anybody know why this isn't working?
My code is here. error below
Code:
$id=base64_encode($id);
// echo $id.'<br/>';
$url="http://localhost/mapickl/processes/update.php?id=$id";
echo $url.'<br/>';
$bid= implode("", file($url));
file(http://localhost/mapickl/processes/u...UuY29tL2pld2Vs) [<a href='function. file'>function. file</a>]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Should i be able to use 'include' with parameters? and is it faster than my using implode?
thanks,
Pete
Comment