[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux] Script PHP qui tourne sous Windows, mais pas Linux
...
> Change pas grand chose. Mais bon, c'est sûrement un problème en plus qui se
> serait posé par après. En fait, après l'astuce de l'exécuter sans les histoires
> de GIF/PNG, je constate qu'il y a une histoire au niveau des cookies qui
> passent avec le serveur apache sous windows, mais pas linux. Faut que je
> revérifie le truc. J'ai probablement bouzillé un truc dans la config d'apache
> sous Linux.
Ou plutôt à la config php (php.ini - /etc/php.ini sur SuSE 7.3):
--snip---
; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right, newer
; values override older values.
variables_order = "EGPCS"
; Whether or not to register the EGPCS variables as global variables. You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data. This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
;
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = On
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = On
--/snip--
Tu as probablement le "register_globals" sur "off".
--
-o) Pascal Bleser ATOS Origin/Aachen(DE) |
/\\ <pascal.bleser@atosorigin.com> |
_\_v <guru@linuxbe.org> |
---------------------------------------------|
Jesus saves,Buddha makes incremental backups :
---------------------------------------------'
_______________________________________________
Linux Mailing List
Archives: http://unixtech.be/mailman/listinfo/linux