Re: PHP calling an ISAPI Extension
| From: | Dan | Date: | Tue, 19 Jun 2007 16:20:03 +0000 |
| Subject: | Re: PHP calling an ISAPI Extension | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257428@lists.php.net to get a copy of this message | ||
You meant imply, infer is when you draw a conclusion based on what one already knows. Imply on the other hand means something you expressed or stated indirectly. Sorry, that's just one thing I can't pass up correcting people on :(.
"Jim Lucas" <lists@cmsws.com> wrote in message news:4677FC7E.9010709@cmsws.com...
Tijnema wrote:On 6/19/07, Jim Lucas <lists@cmsws.com> wrote:I wish I could, I can't count on the script being on a linuxDan wrote: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 amachine. Ifunction? - Daniel "Jim Lucas" <lists@cmsws.com> wrote in message news:46770D93.6010003@cmsws.com...phpnews:56608562F6D5D948B22F5615E3F57E690245F0AC@YGEX01WAL.onecall.local...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"" <jblanchard@pocket.com> wrote in messagefunction.[snip] I'm in need of a way to contact an ISAPI Extension from a PHPwould postDoes anyone know how I would be able to do this? Usually youa 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 callperform 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 Vby William Shakespearewhere did I infer that their was something wrong with the fsockopen method?The only method that I am aware of is the fsockopen method you mention in your other email -- Jim LucasYes, and what's wrong with it?<?php $post_data = "form_a=1&form_b=4"; $fp = fsockopen("www.domain.com",80); fwrite($fp,"POST /scripts/app.dll HTTP/1.1\r\nHost: www.domain.com\r\nContent-Length: ".strlen($post_data)."\r\n\r\n".$post_data); $result = fread($fp,102400); // Reads 100KB, change if you need more ?> That's not too long is it? Tijnema-- Jim Lucas "Some men are born to greatness, some achieve greatness,and some have greatness thrust upon them."Twelfth Night, Act II, Scene Vby William Shakespeare