File Access Optimization
When you need to including file, please recheck file content that will be use. If file is not contains PHP codes, use readfile() function to increase performance.
Because files that including with readfile() does not parsing by PHP. It will be different with construction language include() and require(), and files will be evaluated before.
Consequence from using readfile() is increase attack risk. This risk will be happen when accessing file from URL.
Solution for the attack risk is by using File Handling.
Because files that including with readfile() does not parsing by PHP. It will be different with construction language include() and require(), and files will be evaluated before.
Consequence from using readfile() is increase attack risk. This risk will be happen when accessing file from URL.
Solution for the attack risk is by using File Handling.




6 Comments:
Thanks for the better security tip. I want to implement that.
Internet Marketing agency
It is really awesome to play with php.
seo services
seriously, who think about performance over security ? no one.
Learn PHP Programming Online
I truly like to reading your post. Thank you so much for taking the time to share such a nice information....
Web Designing Company in Chandigarh
"Nice blog.. Thanks for sharing this blog information with us…
Web Development Company Chennai
Thank for the php better tips of security.
PHP Traning in Chandigarh
Post a Comment
Links to this post:
Create a Link
<< Home