PHP Variable Problem
Posted: Fri Nov 09, 2007 7:43 am
Hi,
I'm trying to integrate a PHP page with CMSMS 1.2, but the PHP scripts are acting differently once they're integrated. I believe the problem is that variable defined in one UDT are not available for following UDTs. The page works great on the same server without CMSMS. So here's a piece of the code:
the UDT {require_people} contains:
and config_people.php contains:
and the UDT {gallery_trans} contains:
But {gallery_trans} produces no results! The only way I can get to work is if I include it in the {require_people} tag. But I need variables from the original {require_people} to be available for all following php scripts on the page.
Thanks for your help!
I'm trying to integrate a PHP page with CMSMS 1.2, but the PHP scripts are acting differently once they're integrated. I believe the problem is that variable defined in one UDT are not available for following UDTs. The page works great on the same server without CMSMS. So here's a piece of the code:
Code: Select all
{require_people}
{literal}
<__script__ type="text/javascript" src="js/mootools.js"></__script>
<__script__ type="text/javascript">
var transspeed={/literal}{gallery_trans}{literal};
Code: Select all
require_once "config_people.php";
require_once "getfolders.php";
Code: Select all
$transitionspeed="500";
Code: Select all
echo "$transitionspeed";
Code: Select all
echo "$transitionspeed";
Thanks for your help!