This isn't about dx, it's about PHP.

Technical issues discussion about your computer and Deus Ex games.

Moderator: Forum Guards

This isn't about dx, it's about PHP.

Postby Gishank » Sat May 27, 06 9:13 am

Okay, i used a script for an irc/im thing for my site, but...

_COULD_NOT_READ_CONFIG appears, when the config is named correctly all the correct permissions are set, the mysql is set, here is the config, tell me if the bits i've edited, if i've slipped up.

Code: Select all
<?php
# dbhost:       SQL Database Hostname
$dbhost =    "localhost";

# dbuname:      SQL Username
$dbuname =    "gishank_phpim";

# dbpass:       SQL Password
$dbpass =    "*********";

# dbname:       SQL Database Name
$dbname =    "gishank_im";

# $php121_prefix:      Your Database table's php121 prefix (Don't change this unless you know what you are doing)
$php121_prefix = "php121";

# $siteurl:   The URL to php121, including the trailing slash e.g. http://www.MYURL.com/php121/
$siteurl =    "http://dxkcorp.mobstop.com/PHPIM/";

# $customtitle:   The title you want to appear at the top of every screen
$customtitle =    "KCorp Chat";

# $webmaster:   The email address where your users can contact you
$webmaster =    "crazyfrogdj@googlemail.com";

# $integration: Is PHP121 integrated into another application?
# Possible options:  none, phpnuke
# Warning!  This changes the behaviour of PHP121 a lot!  Be sure you know what you are doing!
# This setting affects how PHP121 looks at sessions.  You also have to change the database
# options in the "Extra Database Options" section below!
$integration =   "none";

# $acctman: Should PHP121 handle creating new user accounts / deleting accounts etc?
# Usually you only want this if $integration is set to none!
# Warning!  This changes the behaviour of PHP121 a lot!  Be sure you know what you are doing!
# 0 = off; 1 = on.
$acctman = 1;

/*****************************************************************************************
**             Extra Database Options                **
** DO NOT CHANGE THESE unless you are wanting to use your existing user database   **
** If you want to use your existing user database (with existing usernames and      **
** passwords, you MUST first alter your database to include the extra PHP121 fields.   **
** To do this, do the following:                     **
**                                 **
**  1.  EDIT sql/alter_existing_usertable.sql and change the name of the table on the    **
**   first line to be the name of your existing users table.            **
**                                 **
**  2.  EXECUTE sql/alter_existing_usertable.sql within your existing database      **
**   (You can do this easily with PHPMyAdmin if your host has it, or simply 'source' **
**   it on the mysql console after selecting the appropriate database ('use'))   **
**                                 **
**  3.   CHANGE the options below to match your user table configuration.      **
**                                 **
******************************************************************************************/


# db_usertable:            name of the existing user table (e.g. php121_users)
$db_usertable         =   "php121_users";

# dbf_uid:            name of the user id field (e.g. uid)
#               (must be an integer field)
$dbf_uid         =   "uid";

# dbf_uname:            name of the username field (e.g. uname)
$dbf_uname         =   "uname";

# dbf_upassword:         name of the password field (e.g. upassword)
$dbf_upassword         =   "upassword";

# dbf_passwordtype:         password type, either md5 or plaintext
$dbf_passwordtype      =   "md5";

# dbf_uemail:            name of the email field (e.g. uemail)
$dbf_uemail         =   "uemail";

# dbf_user_chatting:         name of the php121 user_chatting field   (e.g. php121_user_chatting)
$dbf_user_chatting      =   "php121_user_chatting";

# dbf_smilies:            name of the php121 smilies field (e.g. php121_smilies)
$dbf_smilies         =   "php121_smilies";

# dbf_level:            name of the php121 level field (e.g. php121_level)
$dbf_level         =   "php121_level";

# dbf_showrequest:         name of the php121 showrequest field (e.g. php121_showrequest)
$dbf_showrequest      =   "php121_showrequest";

# dbf_uname_len:         the length of the username field
$dbf_uname_len         =   25;

# dbf_upassword_len:         the length of the password field
$dbf_upassword_len      =   40;

# dbf_uemail_len:         the length of the email field
$dbf_uemail_len         =   255;

# dbf_upassword_input_min_length:   the minimum password length allowed
$dbf_upassword_input_min_length   =   6;

# dbf_upassword_input_max_length:   the maximum password length allowed
$dbf_upassword_input_max_length   =   10;

# dbf_beep_newmsg:         name of the php121 beep on new msg field (e.g. php121_beep_newmsg)
$dbf_beep_newmsg      =   "php121_beep_newmsg";

# dbf_focus_newmsg:                     name of the php121 focus on new msg field (e.g. php121_focus_newmsg)
$dbf_focus_newmsg      =   "php121_focus_newmsg";

# dbf_banned:            name of the php121 user banned field (e.g. php121_banned)
$dbf_banned         =   "php121_banned";

# dbf_timezone:            name of the php121 user timezone field (e.g. php121_timezone)
$dbf_timezone         =   "php121_timezone";

# dbf_timestamp:         name of the php121 user timestamp field (e.g. php121_timestamp)
$dbf_timestamp         =   "php121_timestamp";

# dbf_language:            name of the php121 user language field   (e.g. php121_language)
$dbf_language         =   "php121_language";

?>


Any ideas, also it's distributed by the autority of the GNU incase of editing things it needs to be within legal boundaries
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Alex » Sat May 27, 06 2:47 pm

CHMOD the file to 777
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby Gishank » Sat May 27, 06 3:03 pm

I already did, it's not working, damn this infernal thing.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Alex » Sat May 27, 06 3:18 pm

It's not the file. You fucked up CHMODding
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby Gishank » Sat May 27, 06 3:20 pm

It's set corectly i just re set the CHMOD and it still isn't workin.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Avenger » Sun May 28, 06 9:49 am

klop dont touch things that you you dont know what you are doing
I will withdraw; but this intrusion shall
Now seeming sweet, convert to bitt'rest gall

|<~~Avenger~~>|
User avatar
Avenger
Wannabe
 
Posts: 130
Joined: Fri Apr 14, 06 9:14 am

Postby Gishank » Sun May 28, 06 9:56 am

Right, sure i don't know what i'm doing i'm an idiot[/Sarcasim]
I know exactly what i'm doing moron somethings buggerd up and i don't know what.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Spiderbot01 » Sun May 28, 06 10:15 am

Gishank wrote:Right, sure i don't know what i'm doing i'm an idiot[/Sarcasim]
I know exactly what i'm doing moron somethings buggerd up and i don't know what.


Yet you dont know how to spell sarcasm... >_>
<center>------</center><center>
Image</center>
<center>Image</center><
User avatar
Spiderbot01
Alpha
 
Posts: 5363
Joined: Wed Nov 30, 05 8:24 pm
Location: LONDON!!!!


Return to Technical issues

Who is online

Users browsing this forum: No registered users and 2 guests