I decided to give the Zend Framework a try. The first attempt to create a simple SOAP based login.
In the first few hours i had absolutely now problems building my small application. But for some strange reason after a few hours ZF started to throw error’s. Mainly for files it was trying to include. These files were in the correct location. Nothing changed. The include path was still set correctly. I found a few bug reports with similar problems. Although there were some solutions. I was not satisfied with them. And had the feeling the problems were caused by something else.
So after i read threw all code. I notice a few lines i copied from Cal Evans book. These lines mainly set the include_path for the current application. And it looked something like this:
$lib_paths = array(); $lib_paths[] = "/path/to/application"; $lib_paths[] = "/path/to/library"; $inc_path = implode(PATH_SEPARATOR, $lib_paths); set_include_path($inc_path);
I noticed the application directory was added first. So this is also the first part where PHP starts looking for it’s include files. So i decided to switch them. So the code looks like this now:
$lib_paths = array(); $lib_paths[] = "/path/to/library"; $lib_paths[] = "/path/to/application"; $inc_path = implode(PATH_SEPARATOR, $lib_paths); set_include_path($inc_path);
After this change the problem seems to have been resolved. I still would like to figure out why ZF has problems with finding it’s own include files. Maybe it’s a combination of the wrong include order and the .htaccess file not working well together.








Thijs Lensselink is a 30 year old Web developer from The Netherlands.
With more then 10 years experience in the field of building and maintaining PHP
based web applications. Currently he works as a Freelance Web Developer under ...