PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.comp.lang.php > limit of a variable
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
limit of a variable

Réponse
 
LinkBack Outils de la discussion
Vieux 17/06/2007, 16h55   #1 (permalink)
Jean Pierre Daviau
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut limit of a variable


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


  Réponse avec citation
Vieux 17/06/2007, 17h00   #2 (permalink)
ZeldorBlat
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: limit of a variable

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."

  Réponse avec citation
Vieux 18/06/2007, 12h32   #3 (permalink)
Jean Pierre Daviau
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: limit of a variable


>
> <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'] ?


  Réponse avec citation
Vieux 18/06/2007, 12h46   #4 (permalink)
Jean Pierre Daviau
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: limit of a variable


> 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.


  Réponse avec citation
Vieux 18/06/2007, 19h57   #5 (permalink)
Anze
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: limit of a variable

>> 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
  Réponse avec citation
Vieux 21/06/2007, 17h51   #6 (permalink)
macca
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: limit of a variable

you should use $_POST['variablename'] if you can, not $_request[''] as
it may cause some secutity issues.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h23.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10963 seconds with 14 queries