Re: [PHP] maximum string length

2002-02-27 Thread Bogdan Stancescu

Generally more than you'll ever need :-)

About 8 MB by default.

Bogdan

Kancha . wrote:

What is the maximum number of characters a variable of
type string can hold ?? Is there a restriction ??

$x = adfafasfadfaf  

what is the max number of characters $x can hold ??

__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] maximum string length

2002-02-27 Thread Steven Walker

It may be able to store 8MB, but each line can only hold 1024 
characters. I ran into this using a string variable to store the message 
body of an HTML email. If I did not put a '\n' at the end of each line, 
I would get random '!' placed through the sent email.

Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]

On Wednesday, February 27, 2002, at 07:55  AM, Bogdan Stancescu wrote:

 Generally more than you'll ever need :-)

 About 8 MB by default.

 Bogdan

 Kancha . wrote:

 What is the maximum number of characters a variable of
 type string can hold ?? Is there a restriction ??

 $x = adfafasfadfaf  

 what is the max number of characters $x can hold ??

 __
 Do You Yahoo!?
 Yahoo! Greetings - Send FREE e-cards for every occasion!
 http://greetings.yahoo.com





 -- PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] maximum string length

2002-02-27 Thread Ford, Mike [LSS]

 -Original Message-
 From: Steven Walker [mailto:[EMAIL PROTECTED]]
 Sent: 27 February 2002 17:26
 
 It may be able to store 8MB, but each line can only hold 1024 
 characters. I ran into this using a string variable to store 
 the message 
 body of an HTML email. If I did not put a '\n' at the end of 
 each line, 
 I would get random '!' placed through the sent email.

But that's an email limit -- not one of PHP strings!

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] maximum string length

2002-02-27 Thread DL Neil

Steven

 It may be able to store 8MB, but each line can only hold 1024
 characters. I ran into this using a string variable to store the message
 body of an HTML email. If I did not put a '\n' at the end of each line,
 I would get random '!' placed through the sent email.

Maybe you know more about what Kancha is planning to do with this massive string, but 
the above criticism only
applies to strings used to 'write' an email msg - and only to certain email 
servers/clients at that. It doesn't
apply to strings within PHP, eg reading in the whole of some large text file and 
storing it in a string.

Regards,
=dn


 On Wednesday, February 27, 2002, at 07:55  AM, Bogdan Stancescu wrote:

  Generally more than you'll ever need :-)
 
  About 8 MB by default.
 
  Bogdan
 
  Kancha . wrote:
 
  What is the maximum number of characters a variable of
  type string can hold ?? Is there a restriction ??
 
  $x = adfafasfadfaf  
 
  what is the max number of characters $x can hold ??
 
  __
  Do You Yahoo!?
  Yahoo! Greetings - Send FREE e-cards for every occasion!
  http://greetings.yahoo.com
 
 
 
 
 
  -- PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php