php install, NEED HELP newbie

Frostax

New Member
Messages
4
Reaction score
0
Points
0
I don't know how to install the sendcard php script. What should i write into the script make this work? I've made frostax_sendcard database in cPanel X and i have uploaded the whole site and such. So, how do I install the script?


// Enter your database details
$dbhost = "??????????";
$dbdatabase = "?????????";
$dbuser = "?????????";
$dbpass = "????????";

// Choose your database file
$dbfile = "db_mysql.php";

// How long you want the postcard kept for in seconds e.g. 1209600 = 14 days!
// You can work it out using the following formula:
// {num of days} x 24 x 3600 = num of seconds.
// So 21 days is: 21 x 24 x 3600 = 1814400

$kept = 30 * 24 * 3600;

// Name of the table the postcards are stored in
$tbl_name = "sendcard";
 

Thewinator

New Member
Messages
256
Reaction score
0
Points
0
PHP:
$dbhost = 'localhost';
$dbdatabase = 'frostax_sendcard';
$dbuser = 'TheUserYouAssignedToThisDatabase';
$dbpass = 'ThePasswordThatGoesWithThatUser';
others will work on defaults
 

naim4u

New Member
Messages
51
Reaction score
0
Points
0
I don't know how to install the sendcard php script. What should i write into the script make this work? I've made frostax_sendcard database in cPanel X and i have uploaded the whole site and such. So, how do I install the script?


// Enter your database details
$dbhost = "??????????";
$dbdatabase = "?????????";
$dbuser = "?????????";
$dbpass = "????????";

// Choose your database file
$dbfile = "db_mysql.php";

// How long you want the postcard kept for in seconds e.g. 1209600 = 14 days!
// You can work it out using the following formula:
// {num of days} x 24 x 3600 = num of seconds.
// So 21 days is: 21 x 24 x 3600 = 1814400

$kept = 30 * 24 * 3600;

// Name of the table the postcards are stored in
$tbl_name = "sendcard";
------------------------------------------------------------------------

hey.. siir: you should enter your database variables.
(i.e)
"dhost" means the server .usually for every server it will be "localhost"
"dbdatabase" means the name of the database. you should create a new database and enter that name intohis " " .
"dbuser" : it is the username of the database .you should set the previlences to that ( user and database)
$dbpass is the password of the database.

$dbfile = "db_mysql.php"; //leave it a it is ,it is the name of that file where these database infos. are asked. it may be correct.

... i have filled that db variables. u just change that username and password. remember,to use this script your hosting should enable mail() function. (in x10hosting that is in this hosting .. there is no mail() function enabled ,change the php version to do that)

for other you set it default as given
......................................................................

// Enter your database details
$dbhost = "localhost";
$dbdatabase = "name";
$dbuser = "username";
$dbpass = "password";
// Choose your database file
$dbfile = "db_mysql.php";
// How long you want the postcard kept for in seconds e.g. 1209600 = 14 days!
// You can work it out using the following formula:
// {num of days} x 24 x 3600 = num of seconds.
// So 21 days is: 21 x 24 x 3600 = 1814400
$kept = 30 * 24 * 3600;
// Name of the table the postcards are stored in
$tbl_name = "sendcard";
 
Top