Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts

    need some clearing up on large files

    Say if i had a file thats 1 megabyte and its all functions, when i include that into my main file, only the parts being used are called correct? so not the whole 1 mb file is being read.

    also, does using php_self speed up load time?

  • #2
    Regular Coder
    Join Date
    Sep 2005
    Posts
    394
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Say if i had a file thats 1 megabyte and its all functions, when i include that into my main file, only the parts being used are called correct? so not the whole 1 mb file is being read.
    I am not exactly sure what it does, but remember, computers are not magical. They must read the whole file to find the right part.

    also, does using php_self speed up load time?
    As opposed to using what?

    ~Phil~

  • #3
    Regular Coder
    Join Date
    Jul 2005
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    as oppose to jsut doing the file name, someone told me it was..i argued it would be no different, thats why im asking

  • #4
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no, the entire 1 Meg file will be loaded and parsed into your script. Only the functions you call will acutally be used, but everything will be loaded.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •