| Author |
limit of a variable
|
|
| Jean Pierre Daviau 2007-06-17, 7:01 pm |
|
Hi everyone,
How many characters can a variable holds?
--
Thanks for your attention.
Jean Pierre Daviau
--
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
| |
| ZeldorBlat 2007-06-17, 7:01 pm |
| On Jun 17, 11:55 am, "Jean Pierre Daviau" <O...@WasEno.ugh> wrote:
> Hi everyone,
>
> How many characters can a variable holds?
>
> --
> Thanks for your attention.
>
> Jean Pierre Daviau
> --
> windows Xp
> asus p4 s533/333/133
> Intel(R) Celeron (R) CPU 2.00 GHz
> Processor Radeon7000 0x5159 agp
>From the manual:
<http://www.php.net/manual/en/language.types.string.php>
"It is no problem for a string to become very large. There is no
practical bound to the size of strings imposed by PHP, so there is no
reason at all to worry about long strings."
| |
| Jean Pierre Daviau 2007-06-18, 7:58 am |
|
>
> <http://www.php.net/manual/en/language.types.string.php>
>
> "It is no problem for a string to become very large. There is
> no
> practical bound to the size of strings imposed by PHP, so there
> is no
> reason at all to worry about long strings."
>
Is it the same for a $var = request['textarea'] ?
| |
| Jean Pierre Daviau 2007-06-18, 7:58 am |
|
> Is it the same for a $var = request['textarea'] ?
>
I found that I omitted the <form method="post" in my
html while copy and pasting somehow.
So the browser was using GET.
Everything is ok.
| |
|
| >> How many characters can a variable holds?
>From the manual:
>
> <http://www.php.net/manual/en/language.types.string.php>
>
> "It is no problem for a string to become very large. There is no
> practical bound to the size of strings imposed by PHP, so there is no
> reason at all to worry about long strings."
Of course, there are some limits regarding the memory usage of the process,
but I guess that wasn't the question. :)
Anze
| |
| Jean Pierre Daviau 2007-06-24, 9:58 pm |
|
"macca" <ptmcnally@googlemail.com> a écrit dans le message de
news: 1182444690.895276.293040@c77g2000hse.googlegroups.com...
> you should use $_POST['variablename'] if you can, not
> $_request[''] as
> it may cause some secutity issues.
>
Thanks again
|
|
|
|