skymanj Posted August 10, 2007 Share Posted August 10, 2007 Im receiving an error saying that the line © <?php echo mosCurrentDate( '%Y' ) . ' ' . echo(EZConnect.biz);?> has an unnexpecxted error. How do i fix this? <?php /** * @version $Id: footer.php 3713 2006-05-29 03:25:07Z stingrey $ * @package Joomla * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined( '_VALID_MOS' ) or die( 'Restricted access' ) global $_VERSION; // NOTE - You may change this file to suit your site needs ?> <div align="center"> © <?php echo mosCurrentDate( '%Y' ) . ' ' . print(EZConnect.biz);?> © <?php/*echo mosCurrentDate( '%Y' ) . ' ' . $GLOBALS['mosConfig_sitename'];*/?> </div> <!--div align="center"> <?php echo $_VERSION->URL; ?> </div--> Quote Link to comment https://forums.phpfreaks.com/topic/64305-code-error/ Share on other sites More sharing options...
skymanj Posted August 10, 2007 Author Share Posted August 10, 2007 update, i changed the code some and am still getting error unnexpected T_STRING in line 16. <?php /** * @version $Id: footer.php 3713 2006-05-29 03:25:07Z stingrey $ * @package Joomla * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined( '_VALID_MOS' ) or die( 'Restricted access' ) define('EZCONNECT_BIZ', 'EZConnect.biz') /*global $_VERSION;*/ // NOTE - You may change this file to suit your site needs ?> <div align="center"> © <?php echo mosCurrentDate( '%Y' ) . ' ' . print 'EZCONNECT_BIZ';?> </div> <!--© <?php/*echo mosCurrentDate( '%Y' ) . ' ' . $GLOBALS['mosConfig_sitename'];*/?>--> <!--div align="center"> <?php echo $_VERSION->URL; ?> </div--> Quote Link to comment https://forums.phpfreaks.com/topic/64305-code-error/#findComment-320593 Share on other sites More sharing options...
chocopi Posted August 10, 2007 Share Posted August 10, 2007 maybe its the lack of semi-colons Quote Link to comment https://forums.phpfreaks.com/topic/64305-code-error/#findComment-320599 Share on other sites More sharing options...
lemmin Posted August 10, 2007 Share Posted August 10, 2007 That is at least one problem. defined( '_VALID_MOS' ) or die( 'Restricted access' ) define('EZCONNECT_BIZ', 'EZConnect.biz') Put semi-colons after both those lines. Quote Link to comment https://forums.phpfreaks.com/topic/64305-code-error/#findComment-320607 Share on other sites More sharing options...
skymanj Posted August 10, 2007 Author Share Posted August 10, 2007 ok problem solved, thanks Quote Link to comment https://forums.phpfreaks.com/topic/64305-code-error/#findComment-320627 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.