+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Online shop help/ Registerd globals

  1. #1
    thebigos is offline x10Hosting Member thebigos is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    5

    Online shop help/ Registerd globals

    I have read the fourms and lernt that it is a risk to have globals turned on so i have been following this page so you dont need it for my script,
    http://www.magic-seo-url.com/oscomme...obals-off.html
    Now when i go to my page to install it comes up with,
    http://thebigos.x10hosting.com/HTML/catalog/install/
    Parse error: syntax error, unexpected '=' in /home/thebigos/public_html/HTML/catalog/install/includes/application.php on line 19

    Can any one see what ive done wrong?

  2. #2
    vTech's Avatar
    vTech is offline x10Hosting Member vTech is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Singapore...
    Posts
    34

    Re: Online shop help/ Registerd globals

    can u post up the codes to application.php starting from line 1 to 30
    seems like a simple editing mistake...

  3. #3
    javayathzee's Avatar
    javayathzee is offline x10Hosting Member javayathzee is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    38

    Re: Online shop help/ Registerd globals

    yeah, please post the code so we can get an idea of what line 19 is

  4. #4
    woiwky is offline x10 Lieutenant woiwky is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    390

    Re: Online shop help/ Registerd globals

    They have an error in the code here:

    http://www.magic-seo-url.com/oscomme...obals-off.html

    Wherever you see "&amp;", replace it with "&". And wherever you see "&lt;", replace it with "<". You can do this quickly by just using a Replace All after copying the code from that page.
    "But you have access to the greatest source of knowledge in the universe."
    "Well I do talk to myself sometimes, yes."

    "I'm back, and I'm bad! Obviously within certain, sensible, preset parameters"

  5. #5
    thebigos is offline x10Hosting Member thebigos is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    5

    Re: Online shop help/ Registerd globals

    <?php
    /*
    $Id: application.php,v 1.5 2003/07/09 01:11:05 hpdl Exp $

    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    Copyright (c) 2003 osCommerce

    Released under the GNU General Public License
    */

    // Set the level of error reporting
    error_reporting(E_ALL & ~E_NOTICE);


    // Register Globals MOD - http://www.magic-seo-url.com
    if (version_compare(phpversion(), "4.1.0", "&lt;") === true) {
    $_GET &amp;= $HTTP_GET_VARS;
    $_POST &amp;= $HTTP_POST_VARS;
    $_SERVER &amp;= $HTTP_SERVER_VARS;
    $_FILES &amp;= $HTTP_POST_FILES;
    $_ENV &amp;= $HTTP_ENV_VARS;
    if (isset($HTTP_COOKIE_VARS)) $_COOKIE &amp;= $HTTP_COOKIE_VARS;
    }

    if (!ini_get("register_globals")) {
    extract($_GET, EXTR_SKIP);
    extract($_POST, EXTR_SKIP);
    extract($_COOKIE, EXTR_SKIP);
    }
    // Check if register_globals is enabled.// Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. /*if (function_exists('ini_get')) { ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!'); }*/
    }

    require('includes/functions/general.php');
    require('includes/functions/database.php');
    require('includes/functions/html_output.php');
    /database.php');
    require('includes/functions/html_output.php');
    ?>

  6. #6
    woiwky is offline x10 Lieutenant woiwky is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    390

    Re: Online shop help/ Registerd globals

    As I said in my previous post, you need to replace the html entities. Also, it looks like there's some useless code with those require statements at the bottom. I believe this would work as intended:

    PHP Code:
    <?php
    /*
    $Id: application.php,v 1.5 2003/07/09 01:11:05 hpdl Exp $

    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    Copyright (c) 2003 osCommerce

    Released under the GNU General Public License
    */

    // Set the level of error reporting
    error_reporting(E_ALL & ~E_NOTICE);


    // Register Globals MOD - http://www.magic-seo-url.com
    if (version_compare(phpversion(), "4.1.0""<") === true) {
    $_GET &= $HTTP_GET_VARS;
    $_POST &= $HTTP_POST_VARS;
    $_SERVER &= $HTTP_SERVER_VARS;
    $_FILES &= $HTTP_POST_FILES;
    $_ENV &= $HTTP_ENV_VARS;
    if (isset(
    $HTTP_COOKIE_VARS)) $_COOKIE &= $HTTP_COOKIE_VARS;
    }

    if (!
    ini_get("register_globals")) {
    extract($_GETEXTR_SKIP);
    extract($_POSTEXTR_SKIP);
    extract($_COOKIEEXTR_SKIP);
    }
    // Check if register_globals is enabled.// Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. /*if (function_exists('ini_get')) { ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!'); }*/
    }

    require(
    'includes/functions/general.php');
    require(
    'includes/functions/database.php');
    require(
    'includes/functions/html_output.php');
    ?>
    "But you have access to the greatest source of knowledge in the universe."
    "Well I do talk to myself sometimes, yes."

    "I'm back, and I'm bad! Obviously within certain, sensible, preset parameters"

  7. #7
    thebigos is offline x10Hosting Member thebigos is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    5

    Re: Online shop help/ Registerd globals

    Hi, Thanks for reply ive just tryed that code and now this error comes up,

    Parse error: syntax error, unexpected '}' in /home/thebigos/public_html/HTML/catalog/install/includes/application.php on line 33

  8. #8
    woiwky is offline x10 Lieutenant woiwky is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    390

    Re: Online shop help/ Registerd globals

    Just delete the right curly brace that's on that line.
    "But you have access to the greatest source of knowledge in the universe."
    "Well I do talk to myself sometimes, yes."

    "I'm back, and I'm bad! Obviously within certain, sensible, preset parameters"

  9. #9
    thebigos is offline x10Hosting Member thebigos is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    5

    Re: Online shop help/ Registerd globals

    hi i got rid of that then was able to install it now when i go on the cat or admin i get this come up.

    Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

  10. #10
    LHVWB's Avatar
    LHVWB is offline Lord Of The Keys LHVWB is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1,308

    Re: Online shop help/ Registerd globals

    You probably need to upgrade to the Intermediate version of php. You can do that by requesting it at your account control pannel.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Huge List Of Free MMO Games
    By Soki in forum Gamer's Lounge
    Replies: 215
    Last Post: 05-16-2012, 07:34 AM
  2. Free Online Game
    By Veivei in forum Gamer's Lounge
    Replies: 31
    Last Post: 01-11-2010, 06:32 AM
  3. Replies: 13
    Last Post: 03-15-2008, 10:16 PM
  4. What is billing account?
    By peyman in forum Free Hosting
    Replies: 34
    Last Post: 12-05-2006, 07:56 PM
  5. Nintendo.... DS..... ONLINE!
    By dsfreak in forum Gamer's Lounge
    Replies: 9
    Last Post: 10-14-2005, 04:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers