|
|||
|
Hey people, I am facing a problem which i need to fix urgently. For the last 2 days i have been trying to set up zend framework. but i am not able to.i had installed zend studio - 5.5.1 in my system. Along with that Zend Framework also got installed. Now the path of Zend Framework classes is 'C:\Program Files\Zend\Core\ZendFramework\library'. So as per instructions, in the php.ini file of Apache, i included the this path. So it became,
include_path = ".;c:\php\includes;c:\ProgramFiles\Zend\Core\ZendF ramework\library" But if i restart the server, I am getting the same error again and again. When I checked in the server error log, the error that I am getting is , PHP Warning: require_once(Zend/Filter/Digits.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\Zend\Filters\Customize d_Filter.php on line 4 PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Zend/Filter/Digits.php' (include_path='.;C:\Program Files\Zend\Core\ZendFramework-0.8.0') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\Zend\Filters\Customize d_Filter.php on line 4 I have a file called Customized_Filter.php whose path is in htdocs/Zend/Filters/Customized_Filter.php. This file makes use of Zend/Filter/Digits.php file which is inside the ZendFramework classes. So can anyone please tell me how do i solve this problem. Please. I hope most of you would be knowing the zend framework's setting up as this is a forum for zend framework itself. Thanks. Last edited by pavithrap : 03-25-2008 at 12:48 PM. |
|
|||
|
Quote:
include_path = ".;c:\php\includes;c:\ProgramFiles\Zend\Core\ZendFramework\library" and the error you get: Failed opening required 'Zend/Filter/Digits.php' (include_path='.;C:\Program Files\Zend\Core\ZendFramework-0.8.0') The values for the include_path don't match. That could be the problem, i guess. Are you sure, you are loading the desired php.ini? Ckeck it with phpinfo(). hth /friedhelm |
|
|||
|
Hi ,
Thanks a lot for the reply. Really. Thanks a lot. I have done it. The problem is fixed. Actually the problem was that it was checking for ‘include_path’ in php.ini file of Zend/Core/etc/php.ini whereas we modified the include_path in php.ini file of Apache/php.ini. I executed that phpinfo() file and found out that there were 2 paths. Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File C:\Program Files\Zend\Core\etc\php.ini In the php.ini shown in the second column, the code was include_path=".;C:\Program Files\Zend\Core\ZendFramework-0.8.0”. so I tried commenting this line and added include_path=".;C:\Program Files\Zend\Core\ZendFramework\library". Restarted the server and executed a file that included zend framework classes and it worked!!! The whole problem was because we were modifying the wrong php.ini file yesterday. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|