How do I install Zend-framework 1.11 (Full Recommend) on my local computer? I downloaded the Windows version and ZendServer Community Edition. I want to start learning PHP and take advantage of Zend-Framework.
Lets assume that your apache web folder is: /var/www/htdocs and lets assume that Zend framework itself is under the /var/www/htdocs/library folder, then you would need to create a bootstrap file, which basically loads out Zend <?php // tell php to look for zend classes under the library folder ini_set("include_path",ini_get("include_path").":".dirname(dirname(__FILE__))."/library"); //set up the class autoloader //by default it loads classes, which names start with Zend require_once("Zend/Loader/Autoloader.php"); $autoloader = Zend_Loader_Autoloader::getInstance(); //if you want to create your own classes which start with your own name, for examle Myproject // Myproject_Webapp or Myproject_Superapp // the you need to register the namespace $autoloader->registerNamespace('Myproject_'); /** this way if you say something like: $httpClient = new Zend_Http_Client(); then Zend will include the right file automatically and you do not need to worry about require_once() statements. You can see, that this file is located under the /var/www/htdocs/library/Zend/Http/Client.php With similar logic you could use all the Zend classes. */ PHP: Now once the boostrap file is ready, then in every other php file in your webroot (/var/www/htdocs) would have to have this statement <?php require_once('init.php'); /* Zend is loaded now, insert your php code right here. */ PHP: This is the simplest method of using Zend, but if you do not know nothing of PHP and this story did not make no sense to you at all, then Zend is too much for you and you need to start learning the basics first. Using Zend assumes that you already know what is PHP class, how it behaves, how to use require_once, how to connect to a database and so on.....