header / php.ini

WRInaute discret
salut les bons :D

Je viens de changer de serveur pour un de nos sites. On est maintenant sur un dédié apache/debian de chez Sivit que je maitrise mal ...
Les migrations ne sont jamais anodins. tout fonctionne mais j'ai un soucis avec le header.

Voilà le message:

site.net=exemple
===================
Warning: Cannot modify header information - headers already sent by (output started at /home/web/site.net/global_includes/global.php:7306) in /home/web/site.net/ads/includes/securite.php on line 5
error qry!
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/web/site.net/global_includes/PHPLIB/MYSQL.INC on line 50
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/web/site.net/ads/menu.php on line 25
===========

Mon diagnostic, Pb de version php et de variable de session.
BON ?

Je pense qu'en changeant cela devrait marcher ?
session.bug_compat_42=0
ou
session.bug_compat_warm=0

QU'EN PENSEZ-VOUS ?

L'autre problème c'est le php.ini ...
find / -name php.ini

/usr/local/apache/conf/php.ini
/etc/php4/apache/php.ini
/etc/php4/cli/php.ini
/etc/php4/cgi/php.ini

Lequel dois-je changer ? les 4 ?

Merci de vos éclairages

MC
 
WRInaute accro
mon diagnostic : erreur de code
tu dois afficher du html avant de faire un headerlocation ou session_start ou setcookie... il faut plus de détail sur ton code
 
WRInaute accro
>> Warning: Cannot modify header information

t as l'url de la page qui affiche ca ? ca suffira :)
 
WRInaute discret
euh ... j'ai fait des manips !

Maintenant j'ai

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

voir http://www.location-vacances.info en bas de page
voir http://www.location-vacances.info/annonces/ : accès est impossible aussi

Merci

MC
[/url]
 
WRInaute accro
>> You can disable this functionality and this warning by
>> setting session.bug_compat_42 or
>> session.bug_compat_warn to off, respectively

essaye ca :) si ca marches , tant mieux, ils parlent des register_global (php.ini) mais je ne sais aps ce que veux dire le message :)
 
WRInaute discret
je vais voir: :?:

j'ai 4 php.ini

/usr/local/apache/conf/php.ini
/etc/php4/apache/php.ini
/etc/php4/cli/php.ini
/etc/php4/cgi/php.ini

normal ?
lequel est le bon ?

@+
 
Discussions similaires
Haut