Re: Re: Extract result from a https remote server response
| From: | Virgilio Quilario | Date: | Fri, 13 Feb 2009 14:04:52 +0000 |
| Subject: | Re: Re: Extract result from a https remote server response | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288216@lists.php.net to get a copy of this message | ||
> Sorry all, I was testing in a Windows environment.
> I feel like an idiot... :)
>
> Thanks to all.
>
> --
> m a r k u s
>
> Bruno Fajardo wrote:
>>
>> Assigning the return of file_get_contents to a variable?
>> Didn't get your point...
>>
>> 2009/2/13 m a r k u s <queribus2000@hotmail.com>
>>>
>>> Shawn McKenzie wrote:
>>>>
>>>> Shawn McKenzie wrote:
>>>>>
>>>>> m a r k u s wrote:
>>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> Example :
>>>>>>
>>>>>> https://www.moneybookers.com/app/email_check.pl?email=toto@toto.com&cust_id=123546&password=123
>>>>>> The MB server response displayed is : Illegal operation.
>>>>>> We would like to put the result below in a php variable and process it
>>>>>> .
>>>>>> An idea ?
>>>>>>
>>>>>> PS: The server is secured. The php functions like file(),
>>>>>> file_get_contents(), readfile(), fopen() has been tested.
>>>>>> Regards
>>>>>>
>>>>>> --
>>>>>>
>>>>>> m a r k u s
>>>
>>>> allow_url_fopen = On
>>>
>>> We have no control of the MB remote server configuration.
>>>
>>> --
>>> m a r k u s
>>>
>>> --
in your php.ini, set allow_url_fopen = On
then do this:
$contents = file_get_contents('https://www.moneybookers.com/app/email_check.pl?email=toto@toto.com&cust_id=123546&password=123');
if ($contents !== FALSE)
// $contents now have your data to work on
virgil
http://www.jampmark.com