Can't get Zend to work with PHP on Windows 7

55 Views Asked by At

I'm not able to get Zend to work properly on Windows 7 using IIS 7.5.

I have PHP set up and MySQL set up. This is working.

I work on various websites in various languages (ColdFusion, simply HTML, JSP, etc). These websites are all located in subfolders of the folder E:/working on my system. IIS is then configured to point to the appropriate subu folder for each website. For example if I have the folder E:/working/mysite I would have IIS configured so that http://127.0.0.1/mysite would be associated with that directory and the main page would be displayed (index.cfm, index.html or whatever it is).

So for this project it is PHP. I have a directory of E:/working/myphpsite. This is working and http://127.0.0.1/myphpsite displays the index.php file located in that directory.

The problem is that if I put Zend related code into the index.php file I get this message: PHP Fatal error: Class 'Zend\Form\Form' not found in E:\working\myphpsite\index.php on line 8

The index.php file starts this way:

session_start();

use Zend\Form\Element;
use Zend\Form\Form;

class UploadForm extends Form
{
    public function __construct($name = null, $options = array())
    {
        parent::__construct($name, $options);
       $this->addElements();
}

?>

My PHP directory is E:/PHP. In that directory I have placed the zend files in E:\PHP\includes\ZendFramework\Library\Zend. I have also updated the phi.ini file sections to be as follows:

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

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;E:\PHP\includes\ZendFramework\Library"

I assume I must be missing something very obvious, but have spent hours searching the internet and haven't found any solutions to this issue.

Any help would be most appreciated!

0

There are 0 best solutions below