RSSThe TSW Blog

TSW phpCoder 2008 and include files

December 14, 2007

WebCoder introduced PHP IntelliSense several versions ago, where your PHP code was parsed to obtain relevant information for the IntelliSense functionality. Including files is a very used technic with PHP, and WebCoder supported this by allowing you to define paths to where you would commonly place your include files. Obviously, parsing lots of files is a big task, and should be done as rarely as possible, to save system resources. However, for some users, this wasn't enough - they have include files which include other files which... and so on. To prevent WebCoder from hogging too many resources, it stops after the first level of included files, that is, it only parses include files of the main file, and no more.

It still works like this in phpCoder 2008, but this new application does come with another way of handling include files: Project based include files. When you create a new project, you will be able to define which folders contains the included files - you can even define specific files. When you open the project, all the files are parsed and the information is cached, allowing you to see it in all project documents. This will also come in handy for people including their files dynamically, since phpCoder will no longer care whether or not you use an include statement for a file that it can actually find.

Of course, the old way still works too, if you prefer it :)

Kasper (TSW) @ 9:11 am in phpCoder

Leave a Reply