large php file size

This is a discussion on "large php file size" within the PHP Forum section. This forum, and the thread "large php file size are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 12th, 2007, 10:57
Junior Member
Join Date: Jul 2006
Location: Cornwall
Age: 27
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
large php file size

Hi,
I have a page which is 155 KB of (inefficient) PHP and will rise to at least double the way its going. Does this mean it will take users ages to download, or is it ok because it just outputs html text?

Cheers,
Geoff
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 13th, 2007, 13:21
Reputable Member
Join Date: Feb 2006
Location: London
Age: 26
Posts: 103
Thanks: 0
Thanked 1 Time in 1 Post
Re: large php file size

You can save the web page html and check the file size of the html file. That should give you the size of the html being generated by your php file and what your user is downloading. It's probably going to be a lot smaller than your php file.

I guess if your talking about speed of processing the php file, it depends on whether the whole php file is being used every time.

What I mean by that is if you have if/else statements it's only going to do the if OR else part and ignore the rest.

If the whole 155KB of file is being processed, then it's gonna take a little bit longer, I wouldn't think it would be something to worry about...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 13th, 2007, 15:03
Junior Member
Join Date: Jul 2006
Location: Cornwall
Age: 27
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Re: large php file size

Hi, yeah its not the HTML which I was worried about. Theres a lot of if statements with quite a few conditionals attached to each one.

That should be fine then.

Thanks for your reply.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 13th, 2007, 16:25
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: large php file size

You can conditionally load php via include or require - so that you can shunt code that's only needed in some circumstances out to other files and cut down on the amount that has to be interpretted each time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jun 14th, 2007, 09:54
Junior Member
Join Date: Jul 2006
Location: Cornwall
Age: 27
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Re: large php file size

Yeah thats could be a good way to organise things as well, rather than having a super long document
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jun 20th, 2007, 14:54
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
Re: large php file size

maybe this could help

http://uk2.php.net/zlib
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
file, page, php, size

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to reduce file size of .jpg lmc148 Graphics and 3D 12 Jan 17th, 2008 07:43
Image file size help danny322 Graphics and 3D 6 Nov 9th, 2007 11:20
increasing file size begeiste PHP Forum 3 Sep 30th, 2007 05:33
Large File Transfer Monie Webforumz Cafe 28 Jun 29th, 2007 20:28
Need help with E-Card file size amber Graphics and 3D 7 Jun 19th, 2007 06:24


All times are GMT. The time now is 23:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42