asmith Posted December 21, 2007 Share Posted December 21, 2007 i have written a php file which is over 50 KB. i wanted to know when i upload this file on the my domain , when this file is called how much it takes time for the php to read all the time ? in other words how much the php file size will effect the reading and responding speed? thanks Quote Link to comment https://forums.phpfreaks.com/topic/82642-solved-file-size-effecting-speed/ Share on other sites More sharing options...
rajivgonsalves Posted December 21, 2007 Share Posted December 21, 2007 I don't think it should affect the execution much depends on what the script does ? Quote Link to comment https://forums.phpfreaks.com/topic/82642-solved-file-size-effecting-speed/#findComment-420316 Share on other sites More sharing options...
asmith Posted December 21, 2007 Author Share Posted December 21, 2007 1.hmm do a user download the php file ? i mean if a php file contain about 50 kb php codes, and 10 kb html.when a user request this file , he download the whole 60 kb ? or the first 50 kb will be just interpreted in site php interpreter and the user will get that html 10 kb ? ( + what has been outputed with php from that 50 kb) 2. as you mentioned about what does script do , it is all about so many if statement and recording to mysql database. ? Quote Link to comment https://forums.phpfreaks.com/topic/82642-solved-file-size-effecting-speed/#findComment-420319 Share on other sites More sharing options...
rajivgonsalves Posted December 21, 2007 Share Posted December 21, 2007 Yes the user only downloads the output, the interpretation happens at the server end, so it will only get affected if you outputting lot of data Quote Link to comment https://forums.phpfreaks.com/topic/82642-solved-file-size-effecting-speed/#findComment-420320 Share on other sites More sharing options...
asmith Posted December 21, 2007 Author Share Posted December 21, 2007 thanks , got what i needed to know . so no matter how the size is , the script action matters. Quote Link to comment https://forums.phpfreaks.com/topic/82642-solved-file-size-effecting-speed/#findComment-420323 Share on other sites More sharing options...
rajivgonsalves Posted December 21, 2007 Share Posted December 21, 2007 Yes the processing time depends on what your performing in the script.. if you have a good server it would run fine.. I've run scripts that are around 1MB without any problems Quote Link to comment https://forums.phpfreaks.com/topic/82642-solved-file-size-effecting-speed/#findComment-420328 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.