Results 1 to 5 of 5

Thread: help with php config

  1. #1
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with php config

    I get the following message:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/shevans/public_html/coffeefranchise/includes/config.php on line 33

    What does this mean?

    Thank you.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    It basically means you have a quote in the wrong place. It usually pops up if you have something like this:

    Code:
    echo 'This is a '.$var['test'].'.';
    If you post your code, we can help you find what's wrong with it.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay here goes:

    // Website URL (without: http://) including the sub-folder if site is not installed in the root
    // Sub-Folder example: www.yourdomain.com/sub-folder
    define('SITE_URL', 'www.theinfovillage/coffeefranchise');

    // Cookie Domain // MUST be: .yourdomain.com
    define('COOKIE_DOMAIN', '.theinfovillage.com');

    // Full domain URL // MUST be: http://www.yourdomain.com
    // DO NOT include any sub-folder
    define('DOMAIN_NAME', 'http://www.theinfovillage.com');

    // Root of where the comments folder is located
    // Does NOT need editing and can be lefted as is
    define('DOCUMENT_ROOT', '<?=$_SERVER[DOCUMENT_ROOT]?>');

    // Snippet Rotator (Does not need editing!)
    define('TOTAL_SNIPPETS', '4');

    // Website header title
    define('HEADER_TITLE', 'Coffee Franchise');

    // Adsense Settings
    //********************************
    // Adsense PUB-ID
    // Example pub-1111111111111
    define('PUBID',4456165105225328'');

    // Adsense Channel for tracking
    // Leave blank if you have not setup a channel
    define('ADCHN', '');


    // Amazon Settings
    //********************************
    // If you do not have a amazon affiliate account
    // you need to join here: http://affiliate-program.amazon.com/gp/associates/join
    // you can still upload the site before joining amazon but you will receive an
    // error on part of the page because you don't have a Associates ID.
    //********************************
    // Amazon Associates ID
    define('AMAZON', womearandbey-20'');
    // Amazon Country - (.co.uk) or (.com)
    define('AMAZON_COUNTRY', '.com');


    // Menu Names
    define('MENU_NAME', 'Menu');
    define('MENU_ARTICLES', 'My Articles');

    // URL Link Names
    //********************************
    define('SITE_CONTACT', 'Contact Us');
    define('SITE_MAP', 'Site Map');
    define('SITE_LINKS', 'Friends');
    define('SITE_BUY', 'Products');
    define('SITE_HOME', 'Home');


    // Video Wall ()if you want to add/change the feeds,
    //and you add a keyword phrase. Make sure you replace
    //any spaces with: %2B
    //********************************
    define('SITE_VIDEO', 'Related Videos:');
    define('SITE_VIDEOS', 'Coffee%2BFranchise');


    // RSS Feeds ()if you want to add/change the feeds,
    //and you add a keyword phrase. Make sure you replace
    //any spaces with a plus sign: +
    //********************************
    define('SITE_RSS', 'Related News:');
    $SITE_FEEDS = 'Coffee+Franchise';


    // Site Contact and Meta Tag Details
    //********************************
    define('SITE_NAME', 'Coffee Franchise');
    define('SITE_KEYWORDS', 'Coffee Franchiseir');
    define('SITE_DESCRIPTION', 'Coffee Franchise');
    // DO NOT EDIT
    define('SITE_HTTP', 'http://');


    // Links Manager
    //********************************
    // Links Manager Admin Password
    define('ADMIN_PASS', 'admin');
    // Admin Email // Only needed if NOTIFY_ADMIN=1
    define('ADMIN_EMAIL', 'you@yourdomain.com');
    // Send you an e-mail everytime someone adds a link? 1=YES, 0=NO
    define('NOTIFY_ADMIN', '1');
    // Maximum number of links
    define('MAX_LINKS', '25');


    // Translator (DO NOT EDIT)
    //********************************
    define('TRANSLATOR_LINK', 'lang/');
    define('FLAGS_DIR', 'flags/');
    define('TIMEOUT', 60); // Every TIMEOUT seconds the page will be generated from scratch! (translated pages).



    define('SITE_COPYRIGHT', '&copy; ' . date("Y") . '&nbsp;<a href="' . SITE_HTTP . '' . SITE_URL . '">' . SITE_NAME . '</a> - <a href="site.map.php">Site Map</a>');
    define('SITE_TITLE', SITE_NAME);

    ?>

    Thank you.

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Just a few things I've seen:

    Code:
    define('PUBID',4456165105225328'');
    needs to be:

    Code:
    define('PUBID','4456165105225328');
    and:

    Code:
    define('AMAZON', womearandbey-20'');
    needs to be this:

    Code:
    define('AMAZON', 'womearandbey-20');
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks so much. I was able to get into admin area. Now I just get parent directory and not the site. Sorry I am new to the php mode. Can you please give me a clue as to how to get the site up?

    Thank you so very much.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •