Author Topic: MySQL problem  (Read 1787 times)

Offline Rahim

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
    • F-kar Web Designs,Inc
MySQL problem
« on: Février 26, 2007, 04:46:26 pm »
Hello,

I just have a question about a MySQL  data base which I've created for www.groupeco-dz.com,
Well, Every thing works good, but just a short message's shown at the first time of every visit.
The message is:

<<Warning: Unknown(): Your script possibly relies on a session
side-effect which
existed until PHP 4.2.3. Please be advised that the session extension does not
consider global variables as a source of data, unless register_globals is
enabled. You can disable this functionality and this warning by setting
session.bug_compat_42 or session.bug_compat_warn to off, respectively. in
Unknown on line 0>>

I don't know how to disable "register_globals" in order fix it so I need your help.

Have a nice day and Thank You.

Offline trucmuche

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 11
    • View Profile
    • Chroma Quartet
Re : MySQL problem
« Reply #1 on: Février 26, 2007, 05:10:28 pm »
Hello,

What's your account name ? On which server are you ?
These informations helps the staff to help you faster...

Hope this helps,

MacDo

Offline Rahim

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
    • F-kar Web Designs,Inc
Re : MySQL problem
« Reply #2 on: Février 27, 2007, 09:40:43 am »
Hello,

Thank you trucmuche for your help.

-The account name is: groupeco
-Server FC ( France,serveur C)

Thank you again for helping me to fix this problem.

Offline trucmuche

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 11
    • View Profile
    • Chroma Quartet
Re : MySQL problem
« Reply #3 on: Février 27, 2007, 09:52:38 am »
Well, first, you're not anymore on the FC. The accounts on this server moved to another server some weeks ago (this was discussed on this forum). Now, you're either on TU1 (if you are not reseller) or TS1 (if you are reseller). You can see on which server you are with the phpinfo() command. Also, using this command, you can also see the state of register_globals in the php core configuration tabular. On the TU1 server, register_globals is set to false.

If register_globals is set to true on your server, I cannot help you to solve this since this variable is set by the staff...

Offline Rahim

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
    • F-kar Web Designs,Inc
Re : MySQL problem
« Reply #4 on: Février 27, 2007, 10:20:48 am »
Well, thank you for your useful informations.

Firstly, I've just said that the server is FC because of the Email which I got from the staff. furthermore that I am new "too" in the forum.:|
By the way, I am not a reseller.

Honestly, I can say I'm Lost.I hope the staff will help me.

Have a nice day for all and thank you again.:)

Offline staff

  • Tech. EdelweissHosting
  • Administrator
  • Hero Member
  • *****
  • Posts: 6047
  • Karma: 50
    • View Profile
    • EdelweissHosting
Re : MySQL problem
« Reply #5 on: Février 27, 2007, 10:19:19 pm »
Hello

Your script expects PHP register_globals = ON. Few years ago, it was a standard practice. However, due to security concerns, no hosting server has this feature anymore. All servers are set with register_globals = Off. All PHP scripts must be updated to comply with this policy. Your script is outdated, you must contact your provider to get a new one.

Please don't hesitate to contact us if we can assist you further.

Membre Staff EdelweissHosting
Site Principal: http://edelweisshosting.com
Votre IP: http://edelweisshosting.com/ip.php

Offline Rahim

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
    • F-kar Web Designs,Inc
Re : MySQL problem
« Reply #6 on: Mars 02, 2007, 08:34:31 pm »
Hello,

Well to make you sure , I Don’t have the ability to change, update that script, but I guess I can do something, but before that I should contact the provider, maybe they update thier script.
Else, I have to try 2 other solutions,

The warning message’s shown in the first page of  each visits « only », so perhaps I can :
1)Make few changes in teh CSS of the main page, for example, create a new css file (  for the home page only), and set all txt styles as invisible ones, ( style = » display= non »  and the posisition = absolute , ect..

Then we should create that web page manually, ( don’t run it under CSS configurations..)

2)create  a « bridge » , a redirection page which will include that warning message but it won’t be shown to the visitor.

PS : This web pags’s script must be as any other webpage’s head in the website.
--
I Don’t know if it will work perfectly, but it just a "shot" as a web designer not as a web programmer ;)

I hope I can reach something through all that .

If we cannot solve a problem, we must « adapt » with it.
in case,anyone has a suggestion please don't hesitate to write it.

Anyway, thank you so very much for all,
and have a nice day :)
« Last Edit: Mars 02, 2007, 08:38:06 pm by Rahim »