Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-25-2008, 12:45 PM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default Setting up Zend Framework

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-25-2008, 01:04 PM
Junior Member
 
Join Date: Mar 2008
Posts: 12
Default

Quote:
Originally Posted by pavithrap View Post
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
Your include_path in your php.ini:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-26-2008, 04:16 AM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Smile It worked!!!!

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:16 AM.