PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I've noticed that if I use command line php syntax checking it causes major load time on my script. However, since I develop for mostly php 4 users there is no built in command for file syntax checking. So I was wondering if anyone has any ideas as to how I could possibly run a syntax checking at a decent speed.
Thanks,
Brad Bridges
The following is the function I was using that causes lag:
How long does php -l take? It runs at about the same speed it takes the page to run for me, which is not very noticable... you could cache the result of this along with a checksum of the file and only run it when the page has changed
Well, it's not that the files are large its that there could be hundreds included. The slowness I state comes up that after it does that many files it adds seconds to load time. On a script that normally loads in MS.