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", "[email protected]"); 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! Link to comment https://forums.phpfreaks.com/topic/118188-somebody-please-help-need-help-installing-script/ 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. Link to comment https://forums.phpfreaks.com/topic/118188-somebody-please-help-need-help-installing-script/#findComment-608196 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?? Link to comment https://forums.phpfreaks.com/topic/118188-somebody-please-help-need-help-installing-script/#findComment-608199 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 [email protected] Link to comment https://forums.phpfreaks.com/topic/118188-somebody-please-help-need-help-installing-script/#findComment-608201 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 [email protected] yes i installed it to my website http://www.cbhack.info/offer i dont have msn sorry Link to comment https://forums.phpfreaks.com/topic/118188-somebody-please-help-need-help-installing-script/#findComment-608204 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", "[email protected]"); 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); ?> Link to comment https://forums.phpfreaks.com/topic/118188-somebody-please-help-need-help-installing-script/#findComment-608209 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", "[email protected]"); 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 Link to comment https://forums.phpfreaks.com/topic/118188-somebody-please-help-need-help-installing-script/#findComment-608212 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? Link to comment https://forums.phpfreaks.com/topic/118188-somebody-please-help-need-help-installing-script/#findComment-608224 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! Link to comment https://forums.phpfreaks.com/topic/118188-somebody-please-help-need-help-installing-script/#findComment-608265 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.