PHP/SQL Problem... Help!

milton

Regular Member
Joined
May 21, 2010
Messages
271
Reaction score
60
I have a PHP site trying to write to my SQL database. It is trying to go to name2.php. However, its like it cannot find name2.php which will then executive adding to the directory.

I get this on the site:


The server encountered an internal error or misconfiguration and was unable to complete your request.

and in the log folder, it produces:

PHP 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

Can anyone help with what this means?
 
I have a PHP site trying to write to my SQL database. It is trying to go to name2.php. However, its like it cannot find name2.php which will then executive adding to the directory.

I get this on the site:


The server encountered an internal error or misconfiguration and was unable to complete your request.

and in the log folder, it produces:

PHP 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

Can anyone help with what this means?

It looks like you are running old code on a new version of PHP, did you move this script to a different server?

If you can change the php configuration you can make the changes suggested in the error message. It would probably be better to modify your code so you don't have this problem in the future.
 
register_globals is set OFF on your server. You need to avoid of using register_global anyway.

The problem is on the script file before redirecting to name2.php.
 
It looks like you are running old code on a new version of PHP, did you move this script to a different server?

If you can change the php configuration you can make the changes suggested in the error message. It would probably be better to modify your code so you don't have this problem in the future.

register_globals is set OFF on your server. You need to avoid of using register_global anyway.

The problem is on the script file before redirecting to name2.php.

I didn't write this code so not sure. How can I modify the code? Can I get someone to do it for me?

Yeah I recently switched servers...
 
It looks like you are running old code on a new version of PHP, did you move this script to a different server?

If you can change the php configuration you can make the changes suggested in the error message. It would probably be better to modify your code so you don't have this problem in the future.

I did change the config to

session.bug_compat_42 = 1
session.bug_compat_warn = 0

but didn't help
 
Back
Top