Posted by Pugi! on 08/27/07 10:13
For obtaining the contents of a file one can use the file_get_contents
function.
But when I try to use this function to get the contents of file
including a querystring I always get a failed to open stream, no such
file or directory.
$str = file_get_contents('/dir1/dir2/dir3/file.php?
param1=12¶m2=log¶m3=5');
The contents of the file can either be text or json encoded.
For an xml response it works $xml->load('/dir1/dir2/dir3/file.php?
param1=12¶m2=log¶m3=5').
But it should be possible for txt or json too .. I guess ?
What other functions are there to get the contents of a file with
querystring ?
thanx,
Pugi!
Navigation:
[Reply to this message]
|