+ Reply to Thread
Results 1 to 3 of 3

Thread: php install, NEED HELP newbie

  1. #1
    Frostax is offline x10Hosting Member Frostax is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    4

    php install, NEED HELP newbie

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

  2. #2
    Thewinator is offline x10 Lieutenant Thewinator is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    [NL]
    Posts
    256

    Re: php install, NEED HELP newbie

    PHP Code:
    $dbhost 'localhost';
    $dbdatabase 'frostax_sendcard';
    $dbuser 'TheUserYouAssignedToThisDatabase';
    $dbpass 'ThePasswordThatGoesWithThatUser'
    others will work on defaults



  3. #3
    naim4u's Avatar
    naim4u is offline x10Hosting Member naim4u is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    51

    Re: php install, NEED HELP newbie

    Quote Originally Posted by Frostax View Post
    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";

+ Reply to Thread

Similar Threads

  1. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  2. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  3. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers