hello,

I transfered a site from PHP3/Apache/SUNOS to PHP4/Apache/Linux RedHat
and the php scripts do not work anymore. The problem appears with post
variables.

with    <input type="submit" name="Enregistrer" value="Enregistrer" >
I do    if ($Enregistrer=="Enregistrer")
    that now never says OK
but     if(strcmp(substr($Enregistrer,2),"Enregistrer")==0)
    works

A trace tells me that every post variables now begins by 2 extra
characters RC BS (decimal ascii code 13 & 10). Same thing if I use
$HTTP_POST_VARS["Enregistrer"].

What did I do wrong? Did anybody already see that behavior?

phpinfo() says among others:

PHP Version 4.0.4pl1
System             Linux porky.devel.redhat.com 2.2.17-8smp #1 SMP Fri
Nov
                              17 16:12:17 EST 2000 i686 unknown
Configure Command  './configure' '--prefix=/usr'
                   '--with-config-file-path=/etc' '--disable-debug'
                   '--enable-pic' '--enable-shared'
                   '--enable-inline-optimization'
                   '--with-apxs=/usr/sbin/apxs'
'--with-exec-dir=/usr/bin'
                   '--with-regex=system' '--with-gettext' '--with-gd'
                   '--with-jpeg-dir=/usr' '--with-png' '--with-zlib'
                   '--with-db2' '--with-db3' '--with-gdbm'
                   '--enable-debugger' '--enable-magic-quotes'
                   '--enable-safe-mode' '--enable-sockets'
                   '--enable-sysvsem' '--enable-sysvshm'
                   '--enable-track-vars' '--enable-yp' '--enable-ftp'
                   '--enable-wddx' '--without-mysql' '--without-oracle'
                   '--without-oci8' '--with-xml'

Apache Version     Apache/1.3.14
Apache Release     10314100

-- 
Bonjour chez vous,

Jean Beney, Dept Informatique / LISI, INSA de Lyon
http://lisi.insa-lyon.fr/~jbeney
 
In a world without walls and fences, we do not need windows nor gates.
(anonymous, late 20th century)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to