Re: file_get_contents

From: Date: Tue, 30 Jun 2015 02:19:26 +0000
Subject: Re: file_get_contents
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-324979@lists.php.net to get a copy of this message
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=" > > 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 > >

« previous php.general (#324979) next »