1. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Caro, Michigan
    Rep Power
    the php manual gave an example where you can pull an entire file into one string:

    $fcontents = join( '', file( 'http://www.php.net' ) );

    is there a maximum size that this string can hold, therefore a maximum size file I could import...

    what happens when this max is reached...error, or just cuts off..??

    any help is appreciated..

    ---John Holmes
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Rep Power
    The maximum string length is limited by your web-server's memory space (physical+swap). Your sysadm may, however, have put a limit on the web-server's memory consumption.

    By the way, it's probably quicker to read a file into a string using the code example at http://dk.php.net/manual/function.fread.php3

Similar Threads

  1. Replies: 11
    Last Post: March 9th, 2004, 11:46 AM
  2. array explode ( string separator, string string [, int limit])
    By beemee_freeserv in forum HTML Programming
    Replies: 4
    Last Post: February 5th, 2004, 10:56 AM
  3. Replies: 28
    Last Post: January 4th, 2004, 01:28 PM
  4. Multiple sums in one query, and maximum query length
    By NakedSavage in forum MySQL Help
    Replies: 1
    Last Post: November 14th, 2003, 03:28 PM
  5. finding max string length if more than 2 elements
    By sri197 in forum XML Programming
    Replies: 1
    Last Post: November 7th, 2003, 06:17 PM

IMN logo majestic logo threadwatch logo seochat tools logo