GeN4+ PTC script, Im stuck and dont get it

Discussion in 'HTML & Website Design' started by The_Hound, Dec 25, 2013.

  1. #1
    Hey guys I am new here but not to the internet. I used to setup websites back in the day when everything was hand made and HTML, I was self taught and knew enough. HOWEVER 16 years later I figured HEY what the heck I can do it again, no biggie. I have made a blog on a shared sever I am good. WELL I now own a VPS and a GeN4+ script and it is being a nightmare trying to figure this crap out. I admit I ran into this one thinking I knew and was quickly shown otherwise. I dont have any real money to spend as of right now but is there anyone who could offer me some assitance on getting this Script installed? I have a Bluehost server and domain. I just dont know what I am doing wrong. The loading the script seemed to go OK I guess after the 5th or 6th time but who knows if I got it right or not. I cant see crap on my main page except for wordpress and I dont even know if that is supposed to be there when I am running a script like this. I just added it trying to see what was up. ANY HELP PLEASE?
     
    The_Hound, Dec 25, 2013 IP
  2. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #2
    That scam industry is long gone. All that's left is what I like to call the "internet residue", so you shouldn't expect earning any serious bucks there.

    About the script, what's exactly the problem? Not one of them is even built correctly, but you can still install them easily.
     
    wiicker95, Dec 25, 2013 IP
  3. The_Hound

    The_Hound Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    I just cant seem to get it to load is all. And as far as the market goes, it has more life than you know if you spend time around it. But obviously that is a matter of opinion so I will leave it there.
     
    The_Hound, Dec 25, 2013 IP
  4. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #4
    Well, we can't really help you since you didn't include enough details. Do you mind posting the link to the website?
     
    wiicker95, Dec 25, 2013 IP
  5. The_Hound

    The_Hound Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    Ok so this is the deal, I have filled in the user info, db info, host info, all that cool stuff and it is telling me that there is a syntax error in the php DEFINE_DETAILS and it is all filled in to the best of my knowledge. I dont really know what else to say. I did the manual setup, auto setup and everything bewtween about 10 times. Loading and deleting to make sure I start fresh each time
     
    The_Hound, Dec 26, 2013 IP
  6. The_Hound

    The_Hound Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #6
    And as far as a link goes I cant give you anything that will help as it comes up to a default page because this thing will not even get me to an admin page.
     
    The_Hound, Dec 26, 2013 IP
  7. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #7
    It's not necessarily because of the lack of info. All PTCPay scripts have a lot of bugs, but then again, all GPT scripts have some. There's a syntax error, okay, but can you post the file in question? It should also say which line is the faulty one.
     
    wiicker95, Dec 26, 2013 IP
  8. The_Hound

    The_Hound Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #8
    Yes ok, Sorry I am kinda new at this so I misses the fault line.....And that line is line 1. I will get the error real fast and put it up. Thanks for your help
     
    The_Hound, Dec 26, 2013 IP
  9. The_Hound

    The_Hound Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #9
    There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

    ERROR: Unknown Punctuation String @ 1
    STR: <?
    SQL: <?php

    DEFINE("DB_DETAILS", true);<?php

    DEFINE("DB_DETAILS", true);<?php

    DEFINE("DB_DETAILS", true);<?php

    DEFINE("DB_DETAILS", true);<?php

    DEFINE("DB_DETAILS", true);<?php

    DEFINE("DB_DETAILS", true);<?php

    DEFINE("DB_DETAILS", true);
     
    The_Hound, Dec 26, 2013 IP
  10. The_Hound

    The_Hound Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #10
    SQL query:

    <?php DEFINE("DB_DETAILS", true);
     
    The_Hound, Dec 26, 2013 IP
  11. The_Hound

    The_Hound Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #11
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php

    DEFINE("DB_DETAILS", true)' at line 1
     
    The_Hound, Dec 26, 2013 IP
  12. The_Hound

    The_Hound Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #12
    It wont let me upload the file to show you but the contents in the file are as follows:
    <?php

    DEFINE("DB_DETAILS", true);
    DEFINE("DB_HOST", "gripbuxc_GeN4_ns1.gripbux.com");
    DEFINE("DB_USER", "gripbuxc_GeN4_gripbuxc");
    DEFINE("DB_PASS", "gripbuxc_GeN4_************");
    DEFINE("DB_NAME", "gripbuxc_GeN4");


    ?>
    This is just what I have currently entered, I have tried multiple different combos and urls that could be associated with my site. I know this is something fairly simple but I am NOT A PRO or even really experience on this. I am not afraid to admit that, I am only trying to learn, SO again thank you for your patients and valued help. FILE Name is lib_database.php if that helps

    And the actual Password is in place, I did this for the post
     
    The_Hound, Dec 26, 2013 IP
  13. The_Hound

    The_Hound Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #13
    OK so I got past the Issue above but now I have a new issue, I cannot get the script to connect to mySQL server or mySQL database. I saw this same issue on another forum with the same script just one version older. I went through their instructions and got nothing.
    This is what it looks like as far as script>

    mysql_connect(DB_HOST, DB_USER, DB_PASS)) {

    set_error("We couldn't establish a connection to your MySQL server.");

    $error_load = true;

    }

    if(!mysql_select_db(DB_NAME, $c)) {

    set_error("We couldn't establish a connection to your MySQL database.");

    $error_load = true;

    This is what I have in place now but I have yet again tried different combinations to try and fix it>

    mysql_connect('http://gripbux.com','gripbuxc_boss','gripbuxc_**********')) {

    set_error("We couldn't establish a connection to your MySQL server.");

    $error_load = true;

    }

    if(!mysql_select_db(gripbuxc_gen4, $c)) {

    set_error("We couldn't establish a connection to your MySQL database.");

    $error_load = true;
     
    The_Hound, Dec 27, 2013 IP
  14. wmscripts

    wmscripts Greenhorn

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #14
    hi there its not necessary to edit the lib.php with that, as i can see you have a lib_database.php file in /lib/lib_database.php and one lib_database.php in main. Just edit both files with same database info and the script should working fine.

    And if you don't have a existing lib_database.php in main of the script just copy the one from the /lib/ and put in in the main.

    I hope it works for you it works for me
     
    wmscripts, Apr 4, 2014 IP