Fw: [PHP] maximum string length

From: Date: Wed, 27 Feb 2002 19:24:57 +0000
Subject: Fw: [PHP] maximum string length
Groups: php.general 
Request: Send a blank email to php-general+get-86471@lists.php.net to get a copy of this message
Steven (and anyone else interested), I was working on email earlier in the day, and have just cleared my desk of all that 'junk'. Your reading for tonight (1024/1000/997 byte line length limits in email) can be found in the discussion of RFC 2646 available from sunsite.dk (and elsewhere) - one of the MIME format 'standards' for email. If you're that interested!? Regards, =dn > > 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 > >

« previous php.general (#86471) next »