Thanks everyone.

I think, I will go with the sockets.

Louie

On Tue, Mar 4, 2008 at 12:36 AM, Richard Lynch <[EMAIL PROTECTED]> wrote:

> On Mon, March 3, 2008 1:57 am, Louie Miranda wrote:
> > Could PHP do..
> >
> > 1. Connect and send a parameter to a remote host
> > 2. Wait for the host to reply -- not using event handler
> > 3. Send XML data to the host
>
> <?php
> $xml = file_get_contents("/path/to/file.xml");
> $s = fsockopen("remote host here");
> $reply = fgets($s, 1000000);
> $bytes = fputs($s, $xml);
> if ($bytes != ($len = strlen($xml))){
>  error_log("Only sent $bytes of $len bytes!");
> }
> ?>
>
> You'll need about 3X as much code for proper error checking, but
> that's about it, really...
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/from/lynch
> Yeah, I get a buck. So?
>
>


-- 
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com

Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)

Reply via email to