Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-12-2006, 07:25 PM   PM User | #1
jeromepelletier
Regular Coder

 
Join Date: Jul 2005
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
jeromepelletier is an unknown quantity at this point
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?
jeromepelletier is offline   Reply With Quote
Old 06-12-2006, 10:58 PM   PM User | #2
lavinpj1
Regular Coder

 
Join Date: Sep 2005
Posts: 394
Thanks: 1
Thanked 0 Times in 0 Posts
lavinpj1 is an unknown quantity at this point
Quote:
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.

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

~Phil~
lavinpj1 is offline   Reply With Quote
Old 06-13-2006, 12:10 AM   PM User | #3
jeromepelletier
Regular Coder

 
Join Date: Jul 2005
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
jeromepelletier is an unknown quantity at this point
as oppose to jsut doing the file name, someone told me it was..i argued it would be no different, thats why im asking
jeromepelletier is offline   Reply With Quote
Old 06-13-2006, 06:29 AM   PM User | #4
missing-score
Senior Coder


 
missing-score's Avatar
 
Join Date: Jan 2003
Location: UK
Posts: 2,194
Thanks: 0
Thanked 0 Times in 0 Posts
missing-score is on a distinguished road
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.
missing-score is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:20 AM.


Advertisement
Log in to turn off these ads.