Re: Re: Extract result from a https remote server response

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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@xxxxxxxxxxx>
>>>
>>> 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@xxxxxxxx&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@xxxxxxxx&cust_id=123546&password=123');

if ($contents !== FALSE)
  // $contents now have your data to work on

virgil
http://www.jampmark.com

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux