Re: [PHP] Re: Posting variables from one php script to another

2005-09-23 Thread Al
Jasper Bryant-Greene wrote: Al wrote: I'd use this. It's simple and doesn't involve CURL. Here is a brief outline. $file_str= base64encode(serialize($_GET)); //$_GET can be any array Any reason why you base64_encode here? fwrite is binary-safe so base64 encoding your data is slow and a

Re: [PHP] Re: Posting variables from one php script to another

2005-09-23 Thread Jasper Bryant-Greene
Graham Anderson wrote: As an alternative, if I: 1) posted variables to a script with curl $ch = curl_init ("path2myScript/movieBuilder.php"); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST,1); curl_setopt ($ch, CURLOPT_POSTFIELDS, "mask=mask.gif&drag=drag.gif&movie=fonovi

Re: [PHP] Re: Posting variables from one php script to another

2005-09-23 Thread Graham Anderson
thanks Well, I had to try As an alternative, if I: 1) posted variables to a script with curl $ch = curl_init ("path2myScript/movieBuilder.php"); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST,1); curl_setopt ($ch, CURLOPT_POSTFIELDS, "mask=mask.gif&drag=drag.gif&movie

Re: [PHP] Re: Posting variables from one php script to another

2005-09-23 Thread Jasper Bryant-Greene
Graham Anderson wrote: The below method is the way I send variables to the movieBuilder.php file [located in the 'src' attribute] with GET Variables It does work :) How would I use CURL to POST the same variables to the movieBuilder.php file WITHIN the 'src' attribute ? You can't. Browsers

Re: [PHP] Re: Posting variables from one php script to another

2005-09-23 Thread Graham Anderson
The below method is the way I send variables to the movieBuilder.php file [located in the 'src' attribute] with GET Variables It does work :) How would I use CURL to POST the same variables to the movieBuilder.php file WITHIN the 'src' attribute ? FYI, I am able to POST to the movieBuilder.

Re: [PHP] Re: Posting variables from one php script to another

2005-09-23 Thread Jasper Bryant-Greene
Al wrote: I'd use this. It's simple and doesn't involve CURL. Here is a brief outline. $file_str= base64encode(serialize($_GET)); //$_GET can be any array Any reason why you base64_encode here? fwrite is binary-safe so base64 encoding your data is slow and a waste of space. Create a te