views:

7986

answers:

5

Im trying to install zend framework with wamp server but it is not working properly.

I downloaded the zend framework and the create the folder in C:\wamp\library\Zend and then in php.inc I got something like this ; Windows: "\path1;\path2" ;include_path = ".;c:\php\includes:C:\wamp\library"

Now when i try to run the sample blogger.php it is giving me the following error. Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\PHPSample\Blogger.php on line 37

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.;C:\php5\pear') in C:\wamp\www\PHPSample\Blogger.php on line 37

Can anyone help me please.

A: 

that should work if:

you unpacked contents of the library folder in archive that contains Zend framework in

C:\wamp\library folder. othervise you need to do that ( put the contents of the library folder in archive in path you specified in php.ini

deresh
+3  A: 

On Windows your php.ini should have a section like this:

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"  
; Windows: "\path1;\path2"

The key is to a) remove the semi-colon at the beginning of the line, and b) add what you need to the path. NOTE: on Windows, paths must be separated by semi-colons, whereas on UNIX they are separated by full colons; Also, Dot means "current directory", so only include it if you want to.

Make sure it looks like this:

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

include_path = ".;c:\php\includes;c:\wamp\library"
lo_fye
A: 

you have a mistake in your include path. between includes and C you should have a semicolon, not a colon.

tharkun
+1  A: 

i had made this cast explaining how to setup Many ZF Application with Wamp full functional please check it out and let me know if you had any problem so i can help :

Getting Started with the Zend Framework and WAMP Server

tawfekov
A: 

Hi All I have been install Zend Framework and provided path of library in include_path of php.ini file according to ZF quick start but when i run Bootstrap.php, i am getting error like this. can anyone help me ????????????????

Fatal error: Class 'Zend_Application_Bootstrap_Bootstrap' not found in C:\wamp\www\quickstart\application\Bootstrap.php on line 3

anil