Re: Retrieving an URL paramter via fsockopen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux