jdock1 Posted August 5, 2008 Share Posted August 5, 2008 ok im trying to install a script to my website but im so confused!!!!! idk what i did wrong, something with mysql please go to cbhack.info/offer, and please excuse the dirty language that is all a test lol, but its some kind of sql error. this is what i had to fill out which i think i screwed up <? define("SCRIPTNAME", "YourSite.com"); define("BASEHREF", "http://www.yoursite.com"); define("DOMAIN", "localhost"); define("FROMEMAIL", "admin@yoursite.com"); define("SITENAME", "YourSite.com"); define("INC_DIR", "/home/yoursite/public_html/inc/"); define("PAG_DIR", INC_DIR."pages/"); define("INC_DB", INC_DIR."db.php"); define("MYSQLUSER", "Yourmsql_Username"); // mysql username define("MYSQLPASS", "YourMysqlPass"); // mysql password define("MYSQLDB", "Mysqldb_Name"); // mysql database name require(INC_DB); ?> thats for the main.php for my script, am i supposed to put in my sql info in there? if so in which fields!? whats domain and basehref and inc_db!? somebody please helP! Quote Link to comment Share on other sites More sharing options...
Andy-H Posted August 5, 2008 Share Posted August 5, 2008 Have you purchased a domain name for this website or are you using the root IP/a subdomain? Base HREF is the link you your site and INC_DB is the path in which you database connection file is stored (I assume) This should also be in 3rd party scripts. Quote Link to comment Share on other sites More sharing options...
jdock1 Posted August 5, 2008 Author Share Posted August 5, 2008 Have you purchased a domain name for this website or are you using the root IP/a subdomain? Base HREF is the link you your site and INC_DB is the path in which you database connection file is stored (I assume) This should also be in 3rd party scripts. lol dude i have no idea.. i dont no what i did wrong,, what should i do?? Quote Link to comment Share on other sites More sharing options...
Andy-H Posted August 5, 2008 Share Posted August 5, 2008 Do you have a link to this website? Add me on msn andy-holland@live.co.uk Quote Link to comment Share on other sites More sharing options...
jdock1 Posted August 5, 2008 Author Share Posted August 5, 2008 Do you have a link to this website? Add me on msn andy-holland@live.co.uk yes i installed it to my website http://www.cbhack.info/offer i dont have msn sorry Quote Link to comment Share on other sites More sharing options...
Andy-H Posted August 5, 2008 Share Posted August 5, 2008 Maybe something like that? <? define("SCRIPTNAME", "cbhack.info/offer"); define("BASEHREF", "http://www.cbhack.info/offer"); define("DOMAIN", "localhost"); define("FROMEMAIL", "admin@cbhack.com"); define("SITENAME", "CBhack"); define("INC_DIR", "/home/cpanelUsername/public_html/offer/"); define("PAG_DIR", INC_DIR."pages/"); define("INC_DB", INC_DIR."db.php"); define("MYSQLUSER", "cpaneluser_sqluser"); // mysql username define("MYSQLPASS", "YourMysqlPass"); // mysql password define("MYSQLDB", "cpaneluser_dbname"); // mysql database name require(INC_DB); ?> Quote Link to comment Share on other sites More sharing options...
jdock1 Posted August 5, 2008 Author Share Posted August 5, 2008 Maybe something like that? <? define("SCRIPTNAME", "cbhack.info/offer"); define("BASEHREF", "http://www.cbhack.info/offer"); define("DOMAIN", "localhost"); define("FROMEMAIL", "admin@cbhack.com"); define("SITENAME", "CBhack"); define("INC_DIR", "/home/cpanelUsername/public_html/offer/"); define("PAG_DIR", INC_DIR."pages/"); define("INC_DB", INC_DIR."db.php"); define("MYSQLUSER", "cpaneluser_sqluser"); // mysql username define("MYSQLPASS", "YourMysqlPass"); // mysql password define("MYSQLDB", "cpaneluser_dbname"); // mysql database name require(INC_DB); ?> thanks dude ill try it, but what is the inc.dir? does it matter where it directs to? im so confuseddddd Quote Link to comment Share on other sites More sharing options...
Andy-H Posted August 5, 2008 Share Posted August 5, 2008 Its just basically a variable which needs to be assigned the path to your files, as you see it is called later... <?php define("INC_DIR", "/home/yoursite/public_html/inc/"); define("PAG_DIR", INC_DIR."pages/"); define("INC_DB", INC_DIR."db.php"); ?> So in effect PAG_DIR will become: "/home/yoursite/public_html/inc/pages/" And INC_DB will become: "/home/yoursite/public_html/inc/db.php"; You get the idea? Quote Link to comment Share on other sites More sharing options...
revraz Posted August 5, 2008 Share Posted August 5, 2008 Yes, you are supposed to put your MySQL info here define("MYSQLUSER", "Yourmsql_Username"); // mysql username define("MYSQLPASS", "YourMysqlPass"); // mysql password define("MYSQLDB", "Mysqldb_Name"); // mysql database name thats for the main.php for my script, am i supposed to put in my sql info in there? if so in which fields!? whats domain and basehref and inc_db!? somebody please helP! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.