Re: PHP + Linux: Configuration?

From: Date: Thu, 03 Jul 2003 15:38:45 +0000
Subject: Re: PHP + Linux: Configuration?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153893@lists.php.net to get a copy of this message
Not 100% sure, but isn't $HTTP_POST_VARS depricated?... to lazy to look in the manual right now. You should use $_POST instead. I have no idea if that's causing your problem though :-P - Anthony "Luiz Morte" <morte@xapuri.org> wrote in message news:007301c34155$42d24d10$9301a8c0@quadrata.com.br... Hello list, I have a problem using php in linux. I´m using the code bellow: html code: <form name="texto" METHOD="POST" ACTION="a.php"> <textarea name="teste" cols="120" rows="10" wrap="OFF"></textarea> <p><input name="Enviar" type="submit"></p> </form> php code <?php $tmp= $HTTP_POST_VARS['teste']; $linhas = split("\n", $tmp); printf ("Nro de linhas = %d<br>",count($linhas)); ?> If I repeat the line bellow 100 times and put this in a textarea, the php code returns that there are 154 lines. teste.com.br::Teste variaveis::teste::teste::dfasfafasdfafasdfasfas::11::11::ativo::teste.do.tes te I´ve made this test using the versions: php-4.2.2-17 php-4.3.2-3 Using FreeBSD, I don´t have the error with the same code. (php-4.3.1) Any ideia? Thanks in advance, Luiz.

« previous php.general (#153893) next »