Jump to content
MakeWebGames

5000marios

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by 5000marios

  1. Hey guys.. I am thinking of using this hoster.. http://www.hostmonster.com .. do you think it's good? ( I had found this hoster from youtube from thenewboston )
  2. thank you super moderator :) I am going to sleep now.. I may have more questions in some days ;)
  3. MCCodes Installation 2. Install"; if(!is_writable('mysql.php')) { print "INSTALLATION ERROR: The file mysql.php is not writable. Please use FTP or any other means to CHMOD this file to 0777."; } else if(!$_POST['dbHostName'] || !$_POST['dbUserName'] || !$_POST['dbDatabase'] || !$_POST['adUsername'] || !$_POST['adPassword'] || !$_POST['adCPassword'] || !$_POST['adEmail']) { print "ERROR: You did not fill in one or more elements of the form. Please go back and try again."; } else if($_POST['adPassword'] != $_POST['adCPassword']) { print "ERROR: The passwords you entered did not match. Please go back and try again."; } else { $c = mysql_connect($_POST['dbHostName'], $_POST['dbUserName'], $_POST['dbPassword']) or die("INSTALLATION ERROR: ".mysql_error()." > Back"); mysql_select_db($_POST['dbDatabase'], $c) or die("INSTALLATION ERROR: ".mysql_error()." > Back"); $l=fopen("mysql.php","w"); $mykey=rand(1,2147483647); fwrite($l,""); fclose($l); print "Wrote mysql.php file... "; $fo=fopen("dbdata.sql","r"); $query=""; $lines=explode("\n",fread($fo,1024768)); fclose($fo); foreach($lines as $line) { if(!(strpos($line,"--") === 0) && $line != "") //check for commented lines or blankies { $query.=$line; if(!(strpos($line,";") === FALSE)) { $query=str_replace(array('adUsername', 'adPassword', 'adEmail'), array($_POST['adUsername'], $_POST['adPassword'], $_POST['adEmail']), $query); mysql_query($query,$c) or die("INSTALLATION ERROR: ".mysql_error()." > Back"); $query=""; } } } print "Wrote mysql data into database... "; $path=$_SERVER['HTTP_HOST'].str_replace('installer.php','',$_SERVER['SCRIPT_NAME']); $cj1="http://".$path."cron_fivemins.php?code=".md5($path.$mykey); $cj2="http://".$path."cron_day.php?code=".md5($path.$mykey); print " Done! DO NOT CLOSE THIS WINDOW. You need to install these crons into cPanel or whatever interface you have using the instructions in the Installation Manual. */5 * * * * curl {$cj1} 0 0 * * * curl {$cj2}   After that, you're done! Enjoy MCcodes Lite."; } } function doStartInstall() { print "1. Config -> 2. Install"; if(!is_writable('mysql.php')) { print "INSTALLATION ERROR: The file mysql.php is not writable. Please use FTP or any other means to CHMOD this file to 0777."; } else { print "Database Details: MySQL Hostname: If unsure, localhost is the default on most servers MySQL Username: MySQL Password: MySQL Database: Please make sure the user has access to the database. Admin Details Admin Username: Admin Password: Confirm Password: Admin Email Address: "; } } ?>   THIS IS WHAT I GET.. AND I INSERT THIS DETAILS, AM I DOING SOMETHING WRONG? --> MySQL Hostname: If unsure, localhost is the default on most servers MySQL Username: something random? MySQL Password: something random? MySQL Database: CyLand ( the blank database I have just created ) Please make sure the user has access to the database. Admin Details Admin Username: creating a new username here Admin Password: creating a new password here Confirm Password: creating a new password here Admin Email Address: MY EMAIL
  4. also.. I DO NOT have an account for mysql.......................
  5. so again.. <?php $c = mysql_connect('localhost', 'root', 'p1kap1ka'); mysql_select_db('lite2', $c); $mykey=256573440; ?> what do I put instead of "root", "p1kap1ka" and "lite2" ? ( this is mysql.php) :P
  6. So.. I have created my mysql database.. ( it's blank right now ) sorry for being annoying.. but I am an amature :/
  7. <?php $c = mysql_connect('localhost', 'root', 'p1kap1ka'); mysql_select_db('lite2', $c); $mykey=256573440; ?> what do I put instead of "root", "p1kap1ka" and "lite2" ? ( this is mysql.php)
  8. MySQL Username: where do I create a mysql account?
  9. So.. I have downloaded this McCodes Lite version, and when I try to register, it says: Notice: Undefined index: HTTP_X_FORWARDED_FOR in C:\xampp\htdocs\register.php on line 37 Warning: mysql_connect() [function.mysql-connect]: [2002] No connection could be made because the target machine actively (trying to connect via tcp://localhost:3306) in C:\xampp\htdocs\mysql.php on line 2 Warning: mysql_connect() [function.mysql-connect]: No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\mysql.php on line 2 Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\mysql.php on line 3 Warning: mysql_query() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\register.php on line 55 Warning: mysql_num_rows() expects parameter 1 to be resource, null given in C:\xampp\htdocs\register.php on line 56 The passwords did not match, go back and try again. What does that mean? :/ ( does that mean that I don't have a connection?, if yes, how do I solve it? :P I mean, I just buy a domain, and upload the files? )
×
×
  • Create New...