Results 1 to 2 of 2

Thread: word cloud script

  1. #1
    Join Date
    Jan 2007
    Location
    KL
    Posts
    8
    Rep Power
    0

    word cloud script

    i'm new to this ...please advice on where to put my database name , user and password on these 2 files ...please help

    1) file one mysql.config

    <?

    define('MYSQL_HOST', 'localhost');
    define('MYSQL_DATABASE', 'epvrgken_dlp');
    define('MYSQL_USER', 'epvrgken_dlp');
    define('MYSQL_PASSWORD', 'Viru5Viru5');

    define('MYSQL_DEBUG', 0);



    ?>


    2) config file


    <?php

    //define ('FROM_MAIL', '');

    // $script_path = $_SERVER['DOCUMENT_ROOT'];

    $scriptUrl = substr(BASE_PATH, strlen($_SERVER['DOCUMENT_ROOT']));
    $scriptUrl = substr($scriptUrl, 0, 1) == '/' ? $scriptUrl : '/'.$scriptUrl;
    $scriptUrl = 'http://' .$_SERVER['HTTP_HOST'] .$scriptUrl;

    define ('BASE_URL', $scriptUrl);

    $currencyList = array(
    'USD' => 'US Dollar',
    'CAD' => 'Canadian Dollar',
    'AUD' => 'Australian Dollar',
    'GBP' => 'Pound Sterling',
    'EUR' => 'Euro',
    );

    define ('LIB_PATH', BASE_PATH . '/lib');
    define ('UPLOAD_PATH', BASE_PATH . '/upload');

    define ('URL_PREFIX', 'index.php?fuse=');
    define ('URL_POSTFIX', '');

    define ('IMG_CHECKED', BASE_URL . '/img/checked.gif');
    define ('IMG_UNCHECKED', BASE_URL . '/img/unchecked.gif');

    define ('PAYPAL_IPN', BASE_URL . "/paypal.ipn.php");
    define ('PAYPAL_RETURN', BASE_URL . "/thankyou.php");
    define ('PAYPAL_DEBUG', false);


    define ('TABLE_CONFIG', 'wl_settings');
    define ('TABLE_ADMIN', 'wl_admin');
    define ('TABLE_TRANSACTION', 'wl_transaction');
    define ('TABLE_WORD', 'wl_word');



    ?>
    ___

  2. #2
    Join Date
    Apr 2004
    Location
    Ampang
    Posts
    18
    Rep Power
    0
    For mysql.config. I believed it is obvious where you should put those values respectively.

    The way define function work:

    define ( string $name, mixed $value [, bool $case_insensitive] )
    Reference: PHP: define - Manual

    In this case, change localhost to your database host name. Same goes for the rest.

    As for the other file, it seems not necessary for you to state all these values. But if you want to, I suggest you use the include function:

    PHP Code:
    include("mysql.config"); 
    Therefore you don't have to declare / define same values twice.
    Last edited by shidi; 25-07-2007 at 05:17 PM. Reason: Adding definition for define()
    ""If you must break the law, do it to seize power: in all other cases observe it." - Julius Caesar

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Web Based - frequently used word
    By ladycooper in forum Mamak Stall
    Replies: 0
    Last Post: 20-03-2009, 08:45 AM
  2. What SPAM means in easy word?
    By montyauto in forum Search Engine Marketing
    Replies: 6
    Last Post: 08-01-2007, 12:33 PM
  3. Word Editing on Photoshop
    By calvynlee in forum Graphic Design
    Replies: 2
    Last Post: 13-10-2006, 11:49 AM
  4. Change word case
    By kala_krayon in forum Website Design
    Replies: 5
    Last Post: 18-07-2002, 09:36 AM
  5. please give a word....
    By Ben-davis in forum Websites Review and Suggestion
    Replies: 14
    Last Post: 23-04-2002, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37