Re: file_get_contents

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

 



Try the cURL library instead. The site may use cookies or sessions that are
preventing you from getting the data. cURL allows the program to act as a
browser and may give you better results

http://php.net/manual/en/curl.examples-basic.php

Bastien

On Mon, Jun 29, 2015 at 5:31 PM lizardo@xxxxxxxxxxx <lizardo@xxxxxxxxxxx>
wrote:

> Good afternoon, I am using a translator, I hope the message is
> understood. I want to capture the contents of a web page by passing
> different values, as the following example:
>
> $url="
> http://www.example.com/extranet/ABCD/EFG/Ficha/AAAFicha.asp?CodXXX=$codigo
> ";
> $archivo=file_get_contents($url);
>
> But it seems it does not recognize what is after "?", Which return a
> null string, as I do to make me recognize the symbol "?" and what is
> below the symbol.
>
> Thanks for any help you can give me.
>
> greetings
>
> Lizardo
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> --
> 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