If you are one of the odd balls out there who puts all of your PHP code into the index.php file (I hate having to navigation thru dozens of separate files), will you run into performance problems if your file has over 10,000 lines of code? (The web server's cache should remedy this problem of having to read and parse the file each time, no?)

Member Avatar for diafol

I can't see why you'd want to do this. This stops your code being reusable. Odd as you mention. Cache - depends how long between calls doesn't it?

commented: Indeed most unusual (and far from maintainable) to put all you're code in one file. +3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.