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

2005-09-22 Thread Graham Anderson
I tried this test: //CURL $ch = curl_init ("$myURL/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=fonovisa.mov"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $buffer = curl_exe

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

2005-09-22 Thread Jasper Bryant-Greene
Graham Anderson wrote: In a POST request: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "./movieBuilder.php"); I think you may need to put the full URL here. I don't do a lot with CURL, though, so someone else may be able to help you more here. -- Jasper Bryant-Greene Freelance web devel

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

2005-09-22 Thread Graham Anderson
so is it like this? ? CURL is not quite working yet In a GET request: $movieBuilder would be: $movieBuilder = "./movieBuilder.php?mask=mask.gif&drag=drag.gif&movie=fonovisa.mov"; putting $movieBuilder in the src attribute does work. In a POST request: $ch = curl_init(); curl_setopt($ch,

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

2005-09-22 Thread Jasper Bryant-Greene
Graham Anderson wrote: I am using GET to send variables from one php script to another php script How would I POST the same variables ? http://php.net/curl You can use the CURL functions to send a POST request. -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/