Re: [PHP] Curl output

2009-10-02 Thread Ashley Sheridan
On Fri, 2009-10-02 at 18:07 +0530, kranthi wrote: > >> I've read that the upcoming Firefox 4 may have some features built in > >> for this sort of thing, and there are plugins out there for most > >> browsers that can do this as an added layer of security. > Sorry but I could not understand what yo

Re: [PHP] Curl output

2009-10-02 Thread kranthi
>> I've read that the upcoming Firefox 4 may have some features built in >> for this sort of thing, and there are plugins out there for most >> browsers that can do this as an added layer of security. Sorry but I could not understand what you meant by "this" coming back to original problem... you

Re: [PHP] Curl output

2009-10-02 Thread Ashley Sheridan
On Fri, 2009-10-02 at 15:59 +0530, kranthi wrote: > not many users use those kind of browsers, because if they do most of > the websites which use CDNs will not work. I've read that the upcoming Firefox 4 may have some features built in for this sort of thing, and there are plugins out there for m

Re: [PHP] Curl output

2009-10-02 Thread kranthi
>> Some browser security settings may not allow you to run Javascript code >> that exists on another server though not many users use those kind of browsers, because if they do most of the websites which use CDNs will not work. Firstly, it is not a good idea to fetch an entire web page and snow it

Re: [PHP] Curl output

2009-10-02 Thread Ashley Sheridan
On Fri, 2009-10-02 at 12:51 +0530, kranthi wrote: > using the http://www.w3schools.com/TAGS/tag_base.asp > but I am not sure if base tag works outside > > try... before curl_init() > where URL is parsed using PHP's parse_url() function on http://example.com > > in either case if there are

Re: [PHP] Curl output

2009-10-02 Thread kranthi
using the http://www.w3schools.com/TAGS/tag_base.asp but I am not sure if base tag works outside try... before curl_init() where URL is parsed using PHP's parse_url() function on http://example.com in either case if there are any external js/css files cURL wont fetch external files(and if t

Re: [PHP] Curl output

2009-10-01 Thread Jim Lucas
gbhumphrey wrote: Hi, I am doing a basical curl call and can get the webpage I want. However when it prints to the screen, it only prints the text, not css or any javascript calls that run on page load. Is there a way to make it do that? thanks using a basic curl call $curl_handle=curl_init(); c

Re: [PHP] Curl output

2009-10-01 Thread Paul M Foster
On Thu, Oct 01, 2009 at 04:37:14PM -0700, gbhumphrey wrote: > > Hi, I am doing a basical curl call and can get the webpage I want. However > when it prints to the screen, it only prints the text, not css or any > javascript calls that run on page load. > Is there a way to make it do that? > > th

[PHP] Curl output

2009-10-01 Thread gbhumphrey
Hi, I am doing a basical curl call and can get the webpage I want. However when it prints to the screen, it only prints the text, not css or any javascript calls that run on page load. Is there a way to make it do that? thanks using a basic curl call $curl_handle=curl_init(); curl_setopt($curl_ha

RE: [PHP] Curl output to an array -- HELP!! -- Appended

2002-03-19 Thread mnc
On Wed, 20 Mar 2002, Martin Towell wrote: > (this code not tested) > > $res_arr = explode("\n", $result); > $res_num = count($res_arr); > for ($i = 0; $i < $res_num; $i++) > { > list($k, $v) = explode("=", $res_arr[$i]); > $$k = $v; > } > ?> > > this isn't going to work properly if the "val

RE: [PHP] Curl output to an array -- HELP!! -- Appended

2002-03-19 Thread Martin Towell
OTECTED]] Sent: Wednesday, March 20, 2002 9:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Curl output to an array -- HELP!! -- Appended This is an revision of my previous message: Ok, lets say I have some code here: $result = array(); $ch = curl_init ("https://www.myverificationpl

[PHP] Curl output to an array -- HELP!! -- Appended

2002-03-19 Thread Keith Posehn
This is an revision of my previous message: Ok, lets say I have some code here: $result = array(); $ch = curl_init ("https://www.myverificationplace.com/verify.asp";); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $args); curl_setopt ($ch, CURLOPT_TIMEOUT, 120); //

[PHP] Curl output to an array -- HELP!!

2002-03-19 Thread Keith Posehn
Ok, lets say I have some code here: $result = array(); $ch = curl_init ("https://www.myverificationplace.com/verify.asp";); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $args); curl_setopt ($ch, CURLOPT_TIMEOUT, 120); // Set the timeout, in seconds. curl_setopt ($ch