Alter php.ini include path, Zend Framework

16,522

Solution 1

You need to uncomment the include line. (Remove semi-colon at the start of the line)

include_path = ".;c:\php\includes;C:\wamp\ZendFramework-1.11.11\library"

instead of

;include_path = ".;c:\php\includes;C:\wamp\ZendFramework-1.11.11\library"

Solution 2

Also you can add zend path and php path in environment variable

Stpes: Go to My computer -> right click ->select properties -> Click on change settings->click on advance ->click on environment variales-> go to system vaiable -. edit path -> add your php and zend path here

Solution 3

When a line in an INI file begins with ";", it denotes a comment and is not parsed. Simply remove that, and you should be good to go!

Share:
16,522
Brian Vanderbusch
Author by

Brian Vanderbusch

I've been a Web Developer in some form or another for about 9 years now. I started with good 'ole capable php 5, and went from developing server based sites, to client based apps running on more platforms than I can count. I'm still learning every day, and have a ton of questions, but the consequences of my education have also taught me many things that it might have taken a more experience dev (in the scope of that specific tech) to have tackled. I hope I can provide value to this community! Note: Please do not contact me about job opportunities.

Updated on June 04, 2022

Comments

  • Brian Vanderbusch
    Brian Vanderbusch over 1 year

    I've looked at every question that has been asked on this so far, and none have helped. Partially, this is because in all these years, I've avoided learning the in depth how-to's of php.ini manipulation. (other than errors and other basic changes).

    I'm running Windows 7, and I installed Zend Framework to c:\wamp. thus far, I've opened my php.ini file, and changed it to the following:

    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ; UNIX: "/path1:/path2"
    ;include_path = ".:/php/includes"
    ;
    ; Windows: "\path1;\path2"
    ;include_path = ".;c:\php\includes;C:\wamp\ZendFramework-1.11.11\library"
    

    When I try to run zf in the command line, I get an error, "In order to run the zf command, you need to ensure that Zend Framework is inside your include path".

    I have also added a user variable to my environment variables

    ZEND_TOOL_INCLUDE_PATH  set to C:\wamp\ZendFramework-1.11.11\library
    

    At this point, I'm basically stuck. Any help would be greatly appreciated. Am I including the path wrong in the php.ini file?

  • Brian Vanderbusch
    Brian Vanderbusch over 11 years
    Figured it would be something like this. Thank you. All my material says to alter the path, but no real specific instructions on how...