You are here: Re: [PHP] Retrieving an URL paramter via fsockopen « PHP « IT news, forums, messages
Re: [PHP] Retrieving an URL paramter via fsockopen

Posted by Richard Lynch on 02/08/05 21:36

> 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация