Re: Retrieving an URL paramter via fsockopen
| From: | Richard Lynch | Date: | Tue, 08 Feb 2005 19:36:48 +0000 |
| Subject: | Re: Retrieving an URL paramter via fsockopen | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208283@lists.php.net to get a copy of this message | ||
> I have to get an URL parameter via fsockopen connection.
> I shall connect with fsockopen to a given link and get back this link
> with an URL parameter cnr=xxxxxx
> Who can I do this?
> And who can I "read" this URL parameter?
What's "cnr" ???
If you can get the fsockopen to work, and it doesn't return FALSE, then
you should be able to use http://php.net/fread (and other file
functions)
to read and write data.
The "cnr" bit is not clear... Do you just mean:
<?php
$socket = fsockopen("http://example.com/?cnr=xxxxxx") or
die("Could not
open URL");
?>
That should work just fine.
--
Like Music?
http://l-i-e.com/artists.htm