Re: file_get_contents
| From: | Aziz Saleh | Date: | Tue, 30 Jun 2015 02:24:31 +0000 |
| Subject: | Re: file_get_contents | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324980@lists.php.net to get a copy of this message | ||
On Mon, Jun 29, 2015 at 10:19 PM, Bastien Koert <phpster@gmail.com> wrote:
> 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@unsa.edu.pe <lizardo@unsa.edu.pe>
> 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="
> >
> ¤ÃäÃÃc
> M#ÆÔ+f9http://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
> >
> >
>
That should work, do a var_dump($url); and post the output.