Re: Re: Posting variables from one php script to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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=fonovisa.mov");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$buffer = curl_exec($ch); // execute the post
//echo $buffer;
curl_close ($ch);
}

2) write the 'src' attribute as './movieBuilder.php' with no variables passed

$xml = <<<EOB
<?xml version="1.0"?>
<?quicktime type="application/x-quicktime-media-link"?>
<embed
src="./movieBuilder.php"/>
EOB;


Would the movieBuilder.php file retain the POST'ed variables ? Or, would they be lost in the void.

maybe this approach is silly?

You could save the variables to a file. But it's silly and slow when you could just use GET. Can you explain why you don't want to just send them as GET variables in the query string?

--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux