Menu

Some issues and suggestions...

Hilfe/Help
Anonymous
2002-04-17
2002-04-17
  • Anonymous

    Anonymous - 2002-04-17

    Hello

    I'm actually new to PHP and to this chat in particular. So my problem could be a configuration one, also I'm not sure in that.

    My configuration:
      OS: Win XP
      Apache 1.3.24
      PHP 4.2.0RC4
      MySQL Max 3.23.49.
    Also has some perl, cygwin and tons of other staff but that is not relevant, i think.

    The problems started with the quickinstall procedure: it just doesn't work at all. Whatever I try to enter into the fields, i always get the same window.

    Ok, I'm not that lazy person, so I've made the manual installation (database setup, environment, etc).

    Then I've got a problem with the "register new user" script... It was refusing to register anything... I've hacked the code again...
    In register.php:
    --------
    include ("login_inc.php");

    $password=$HTTP_POST_VARS["password"];
    $password2=$HTTP_POST_VARS["password2"];
    $nick=$HTTP_POST_VARS["nick"];
    $user_email=$HTTP_POST_VARS["user_email"];

    if($password && $password2){ //new registration
    --------
    As I understand the PHP shall obtain those variables automatically...

    So I've succeded to register a singe user, also the script apparently failed to function proprely afterwards.

    And when I try to login into my chat :), I'm constantly thrown out without any kind of warning... The problem is very similar to the one described in "Unable to display chatroom", but nothing helps... Another thing I've noticed that when I'm thrown away the URL is changed to the one with inactivity message (some urlencoded html tags and warning), but this message is not displayed in the window. At the same time the statistics shows that my user is logged in...

    Any ideas what it could be...

    Other minor issues noticed (and was to fix offered):
    Server warns about usage of: "Call-time pass-by-reference has been deprecated - argument passed by value;". Ok, I've patched the script to use the proper syntax - it disappered.

    Files could not be found:
      .../html/images/animage.gif
      .../html/images/chat_bg.gif

    The content-type meta tag is used in a wrong way when using localization (russian in my case). The problem is that the script sometimes insert meta tag with a fixed value:
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"/>
    This is a wrong way of doing things when using russian language as the charset contained in the "russian_inc.php" file is "koi8-r".

     
    • Mirko Giese

      Mirko Giese - 2002-04-17

      in php4.2.x is - per default - register_globals = off
      phpopenchat is in this version not prepared for that, this will work after ver.3.0 of phpopenchat, which is in a very early stadium. so the only way o make the chat work (and many other opensource-php-projects): register_globals=on in your php.ini

       
    • Anonymous

      Anonymous - 2002-04-17

      Thanks a lot. That was really helpful.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.