php nuke setup problems.

Discussion in 'Web Design & Coding' started by cam, Apr 12, 2002.

  1. cam

    cam Guest

    this is my first experience with php, php-nuke and mySQL so im having a bit of trouble. in the config file is this:

    ##########################################
    # Database & System Config
    #
    # dbhost: SQL Database Hostname
    # dbuname: SQL Username
    # dbpass: SQL Password
    # dbname: SQL Database Name
    # $prefix: Your Database table's prefix
    # $user_prefix: Your Users' Database table's prefix (To share it)
    # $dbtype: Your Database Server type. Supported servers are:
    # MySQL, mSQL, PostgreSQL, PostgreSQL_local, ODBC,
    # ODBC_Adabas, Interbase, and Sybase.
    # Be sure to write it exactly as above, case SeNsItIvE!
    ##########################################

    they want those things filled in below. my database name is blues, but i dont know the prefix or the user prefix.. what are these and how do i find out which strings to plug in there for it to work?

    cam
     
  2. Pyr0

    Pyr0 Guest

    Just leave it alone...
     
  3. cam

    cam Guest

    then i get errors.
     
  4. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    syntax?

    cam,

    If I am reading you right, it sounds like you want the syntax for setting variables in PHP.

    $var_name = "value";

    words must be included within quotes. numbers can be used without quotes.

    ex: $var_name = "words"; $var_name2 = 13;

    if you want to set one var to the value of another:

    $var_name = $var_name2;

    If I read you wrong, sorry for wasting your time.
     
  5. cam

    cam Guest

    yes actually, completely wrong ;)

    what i posted up there was part of the config.php file. they wanted me to edit some strings below that before trying to access a specific page where i can. my question was what the prefixes were, im not fluent with mySQL or php so i am sort of lost.

    cam
     
  6. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    My bad, see below.

    ##########################################
    # Database & System Config
    #
    # dbhost: SQL Database Hostname
    # dbuname: SQL Username
    # dbpass: SQL Password
    # dbname: SQL Database Name
    # $prefix: Your Database table's prefix
    # $user_prefix: Your Users' Database table's prefix (To share it)
    # $dbtype: Your Database Server type. Supported servers are:
    # MySQL, mSQL, PostgreSQL, PostgreSQL_local, ODBC,
    # ODBC_Adabas, Interbase, and Sybase.
    # Be sure to write it exactly as above, case SeNsItIvE!
    ##########################################
    dbhost is the hostname, usually set to "localhost"
    dbusername is the username, your login to mySQL/phpMyAdmin, this is given to you by the admin of the box/shell your site is hosted on.
    dbpass is your mySQL/phpMyAdmin password
    dbname is "blues" -- the name of your database
    prefix is the name of the sql file
    user_prefix is the name of the sql file
    dbtype would be the database type, like if your host runs mySQL it would be set to mySQL, etc etc.

    http://www.nukesupport.com is a great support site for PHP Nuke web apps. Hope that helps.