PHP Syntax Help - URGENT!

Discussion in 'PHP' started by iTunes, Jan 30, 2011.

  1. #1
    Hey guys,


    I'm trying to install a proxy listing script on my new site, and the config file has a load of errors in that I can't solve...


    if anybody can help correct them, I'll be extremely grateful!


    <?php
    
    // Database details
    
    $username="pfxzmzz_wginpcx";
    
    $password="*******!";
    
    $database="pfxzmzz_proxy";
    
    $hostname="localhost";
    
    
    // Theme Folder Name
    
    $theme = "default";
    
    
    // Maximum Proxy Listing Per Page
    
    $perpagelimit = "60";
    
    $feedlimit = "25"; //limit the RSS Feed
    
    
    // Site Details
    
    $sitename=  "Proxy Listing - Bypass All School Filters &bull; Add Your Proxy Today!";
    
    $scriptroot = "http://www.proxylisting.info/"; //with trailing "/"
    
    
    // BackLink to Submit Proxies
    
    $needbacklink = "yes"; //set "no" if don't require backlink, otherwise set "yes"
    
    $thedomain = "http://proxylisting.info"; //to check as backlink
    
    $backlinktext = '<a href="http://www.proxylisting.info">Proxy Site List</a>';
    
    
    // Show Selected Proxies at the top of all proxy listing
    
    $showselected = "yes"; //set "no" to hide Selected Proxy listing at the top, otherwise set "yes"
    
    
    // Block Certain Domains
    
    $blockeddomains = array() //just use array(), if you want to allow all domains
    
    
    // Captcha on or off to submit proxy
    
    $captchaon = "off" //set "on" or "off" to switch captcha
    
    
    // Twitter Username & Password
    
    $autotwitt = "on"; //set "off" if don't want to auto tweet proxies, otherwise set "on"
    
    $twitter_user = "ProxyListing";
    
    $twitter_pass = "*******";
    
    
    // Proxy Categories, add or remove any.
    
    // Note: If you add new category later, better add at the end. Otherwise it will cause existing proxy type to alter (not a big matter).
    
    $proxycats = array('Glype Proxy', 'PHProxy', 'CGI Proxy', 'Zelune Proxy', 'Surrogafier Proxy', 'Happy Proxy', 'ASProxy', 'Other Proxies');
    
    
    // How many Top Proxy & Rrecent Proxy to diplay
    
    $toprecentnumber = 8;
    
    
    // Tag Maximum Size, Minimum Size and Tag colors to use.
    
    $tag_max_size = 22; // max font size in pixels
    
    $tag_min_size = 12; // min font size in pixels
    
    $tag_colors = array("#CC0033","#FF6600","#6633CC","#336600","#0099FF","#CC66FF","#FF33CC");
    
    
    // Waiting time in seconds before redirecting to the proxy site.
    
    $redirectwaiting = "5"; // set 0 to disable waiting. (just edit out.php to add content)
    
    
    // Copyright Text at bottom of site
    
    $copyrighttext = '&copy; 2011 <strong><a href="http://proxylisting.info">ProxyListing</a></strong>';
    
    
    // Meta Description and Some Keywords for Search Engines
    
    $metadescription = "Another Fresh Proxy Listing site";
    
    $metakeywords = "proxy listing, proxy topsite, proxy sites, browse proxy";
    
    
    // Your Email
    
    $myemail = "jamehh@gmail.com";
    
    
    // Admin Password
    
    $accounts[] = array("*******");
    
    
    // Do not edit below
    
    include "functions.php";
    
    ?>
    Code (markup):

    Starred bits are where my passwords are.


    also, try using the link below to check the syntax, i have been for ages now and can't figure it out...

    I will pay if you can get this page to work with working syntax!


    http://tools.sopili.net/php-syntax-check/


    Thank you!
     
    iTunes, Jan 30, 2011 IP
  2. Andrew J

    Andrew J Peon

    Messages:
    32
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Fixed.

    
    <?php
    
    // Database details
    
    $username="pfxzmzz_wginpcx";
    
    $password="*******!";
    
    $database="pfxzmzz_proxy";
    
    $hostname="localhost";
    
    
    // Theme Folder Name
    
    $theme = "default";
    
    
    // Maximum Proxy Listing Per Page
    
    $perpagelimit = "60";
    
    $feedlimit = "25"; //limit the RSS Feed
    
    
    // Site Details
    
    $sitename=  "Proxy Listing - Bypass All School Filters &bull; Add Your Proxy Today!";
    
    $scriptroot = "http://www.proxylisting.info/"; //with trailing "/"
    
    
    //  to Submit Proxies
    
    $needbacklink = "yes"; //set "no" if don't require backlink, otherwise set "yes"
    
    $thedomain = "http://proxylisting.info"; //to check as backlink
    
    $backlinktext = '<a href="http://www.proxylisting.info">Proxy Site List</a>';
    
    
    // Show Selected Proxies at the top of all proxy listing
    
    $showselected = "yes"; //set "no" to hide Selected Proxy listing at the top, otherwise set "yes"
    
    
    // Block Certain Domains
    
    $blockeddomains = array(); //just use array(), if you want to allow all domains
    
    
    // Captcha on or off to submit proxy
    
    $captchaon = "off"; //set "on" or "off" to switch captcha
    
    
    // Twitter Username & Password
    
    $autotwitt = "on"; //set "off" if don't want to auto tweet proxies, otherwise set "on"
    
    $twitter_user = "ProxyListing";
    
    $twitter_pass = "*******";
    
    
    // Proxy Categories, add or remove any.
    
    // Note: If you add new category later, better add at the end. Otherwise it will cause existing proxy type to alter (not a big matter).
    
    $proxycats = array('Glype Proxy', 'PHProxy', 'CGI Proxy', 'Zelune Proxy', 'Surrogafier Proxy', 'Happy Proxy', 'ASProxy', 'Other Proxies');
    
    
    // How many Top Proxy & Rrecent Proxy to diplay
    
    $toprecentnumber = 8;
    
    
    // Tag Maximum Size, Minimum Size and Tag colors to use.
    
    $tag_max_size = 22; // max font size in pixels
    
    $tag_min_size = 12; // min font size in pixels
    
    $tag_colors = array("#CC0033","#FF6600","#6633CC","#336600","#0099FF","#CC66FF","#FF33CC");
    
    
    // Waiting time in seconds before redirecting to the proxy site.
    
    $redirectwaiting = "5"; // set 0 to disable waiting. (just edit out.php to add content)
    
    
    // Copyright Text at bottom of site
    
    $copyrighttext = '&copy; 2011 <strong><a href="http://proxylisting.info">ProxyListing</a></strong>';
    
    
    // Meta Description and Some Keywords for Search Engines
    
    $metadescription = "Another Fresh Proxy Listing site";
    
    $metakeywords = "proxy listing, proxy topsite, proxy sites, browse proxy";
    
    
    // Your Email
    
    $myemail = "jamehh@gmail.com";
    
    
    // Admin Password
    
    $accounts[] = array("*******");
    
    
    // Do not edit below
    
    include "functions.php";
    
    ?>
    
    Code (markup):
    If you're serious about payment my paypal is and it would be much appreciated.
     
    Last edited: Jan 30, 2011
    Andrew J, Jan 30, 2011 IP
  3. iTunes

    iTunes Member

    Messages:
    447
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #3
    All I can afford right now after being scammed out of around $100.

    Will pay the rest of what I was going to when I get it (probably later on).

    Thank you!
     
    iTunes, Jan 30, 2011 IP
  4. Andrew J

    Andrew J Peon

    Messages:
    32
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you sir, have a good one.
     
    Andrew J, Jan 30, 2011 IP
  5. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Disscuss-BB.org, there were only 3 missing ";", look at end of lines (before comment (// comment description))
     
    G3n3s!s, Jan 30, 2011 IP
  6. iTunes

    iTunes Member

    Messages:
    447
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #6
    I ran the script through and added them in before I posted this, that's why I was confused because I thought it was such a small error..
     
    iTunes, Jan 31, 2011 IP
  7. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #7
    But in your first post, you got these ; missing
     
    G3n3s!s, Jan 31, 2011 IP
  8. iTunes

    iTunes Member

    Messages:
    447
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #8
    Oh right, well the corrected version that andrew did worked like a charm, and the script can now be used at http://proxylisting.info
     
    iTunes, Jan 31, 2011 IP