Dan wrote:
I wish I could, I can't count on the script being on a linux machine. I also can't expect people to rebuild PHP with the curl library just to use my script. Is there any other way to do a post to a page from a php function?

- Daniel

"Jim Lucas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
Dan wrote:
I would normaly do it with an AJAX call but I need to do a post from WITHIN a PHP function, so when it's doing php stuff
ex.
function something()
{
echo 'whatever';
$response = post some data to a ISAPI Extension eg. post to http://domain.com/scripts/app.dll
return $response . "other data";
}


""Jay Blanchard"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[snip]
I'm in need of a way to contact an ISAPI Extension from a PHP function.
Does anyone know how I would be able to do this?  Usually you would post
a
page to their URL/actionname.  Can I do a POST from a PHP function
without
reloading the page, and get a result back?  That's one tall order.
Anyone
want to give it a shot?
[/snip]

Do the POST with an AJAX call

perform an ajax call the a php script that calls curl to do a post to the ISAPI extension

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
by William Shakespeare

The only method that I am aware of is the fsockopen method you mention in your 
other email

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

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

Reply via email to