Reply to Re: _GET['name'] truncates

Your name:

Reply:


Posted by Ramon on 02/05/07 19:41

The length of the string is +/= 1200 characters. The maximum for IE is 2048,
and for other browsers even longer...

"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:op.tnaif7mnqnv3q9@misant.kabel.utwente.nl...
Ramon <info@kwekerijschiffelers.nl> wrote:

> Hi all,
>
> I've written a php script, called test.php, consisting of the following
> statements:
>
> <?php
> error_reporting(E_ALL);
> $query = $_GET['sql'];
> echo $query;
> ?>
> Using the script with 'small' values for the parameter sql works fine.
> Although, using the script with the sql query as specified below

> <SNIP very long url>

> I do not understand why the value of the sql parameter is truncated. Any
> help is appreciated!!

The GET string has a maximum, both by HTTP design and browser limitations,
and you probably reached it (anyone willing to look up what that exact
maximum is?).

You shouldn't try to get this in a GET, just use POST.

--
Rik Wasmus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация