server sending two versions of code
Posted: Fri Nov 18, 2005 10:20 am
i'm so baffled. i have a piece of PHP code (in an open-source CMS called Joomla) that is just not appearing when i access it from a particular computer. The actual source code is missing a chunk when i view it from this particular computer. i thought that PHP (where no variables are involved) would output the same code to any browser just the same, so i'm confused. If it makes any difference, here's the code for the little module. Remember, the module is working fine at every computer but one. i tested it in IE and Firefox on all machines.
Code: Select all
<?php
/**
* A FlashBanner module that is accessible with alternative image
* Designed For Mambo 4.5.3
* Mambo is Free Software
* This Module is released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* version $Revision: 1.0 $
* Date 09/30/2005
**/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// parameters
//$moduleclass_sfx = $params->get( 'moduleclass_sfx' );
$bannerurl = $params->get( 'bannerurl');
$name = $params->get( 'name');
$bannerX = $params->get( 'bannerX');
$bannerY = $params->get( 'bannerY');
$bgcolor = $params->get( 'bgcolor');
$banneralturl = $params->get( 'banneralturl');
$altname = $params->get( 'altname');
$banneraltX = $params->get( 'banneraltX');
$banneraltY = $params->get( 'banneraltY');
echo "<object data=\"$bannerurl\" type=\"application/x-shockwave-flash\" codebase=\"$bannerurl\" width=\"$bannerX\" height=\"$bannerY\"><param name=\"movie\" value=\"$bannerurl\" /><param name=\"menu\" value=\"false\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"$bgcolor\" /><img src=\"$banneralturl\" width=\"$banneraltX\" height=\"$banneraltY\" alt=\"$altname\" /></object>";
?>