Jump to content

somebody please help, need help installing script


jdock1

Recommended Posts

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!

Link to comment
Share on other sites

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
Share on other sites

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
Share on other sites

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);

 

?>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.