jarv Posted September 21, 2009 Share Posted September 21, 2009 how do i install Zend Framework? I am testing locally and I extracted the Zend files into my Sites folder on my mac but when I go to one of the Zend demos, I get the following error: Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /Users/john/Sites/demos/Zend/Gdata/Calendar.php on line 51 Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.:') in /Users/john/Sites/demos/Zend/Gdata/Calendar.php on line 51 Please can someone help?! Quote Link to comment https://forums.phpfreaks.com/topic/175003-ust-working-out-how-to-use-zend-how-do-i-install/ Share on other sites More sharing options...
itaym02 Posted September 22, 2009 Share Posted September 22, 2009 What is the path to your Zend folder? And put here the code of the bootstrap file you use. Quote Link to comment https://forums.phpfreaks.com/topic/175003-ust-working-out-how-to-use-zend-how-do-i-install/#findComment-922644 Share on other sites More sharing options...
jarv Posted September 22, 2009 Author Share Posted September 22, 2009 I don't understand?! bootstrap? I put the zend folders in my Sites folder as i already said above Quote Link to comment https://forums.phpfreaks.com/topic/175003-ust-working-out-how-to-use-zend-how-do-i-install/#findComment-922766 Share on other sites More sharing options...
trq Posted September 22, 2009 Share Posted September 22, 2009 You need to put lib/Zend somewhere on your include_path. Quote Link to comment https://forums.phpfreaks.com/topic/175003-ust-working-out-how-to-use-zend-how-do-i-install/#findComment-922774 Share on other sites More sharing options...
jarv Posted September 22, 2009 Author Share Posted September 22, 2009 where is my include_path? Quote Link to comment https://forums.phpfreaks.com/topic/175003-ust-working-out-how-to-use-zend-how-do-i-install/#findComment-922777 Share on other sites More sharing options...
RichardRotterdam Posted September 22, 2009 Share Posted September 22, 2009 You can define it in your php.ini file Quote Link to comment https://forums.phpfreaks.com/topic/175003-ust-working-out-how-to-use-zend-how-do-i-install/#findComment-922789 Share on other sites More sharing options...
jarv Posted September 22, 2009 Author Share Posted September 22, 2009 ok so in my php.ini file there is a bit that reads: ; UNIX: "/path1:/path2" include_path = ".:/php/includes" ; ; Windows: "\path1;\path2" ;include_path = ".;c:\php\includes" I cannot find the folder php/includes Quote Link to comment https://forums.phpfreaks.com/topic/175003-ust-working-out-how-to-use-zend-how-do-i-install/#findComment-922812 Share on other sites More sharing options...
RichardRotterdam Posted September 22, 2009 Share Posted September 22, 2009 I cannot find the folder php/includes That you can not find that folder is irrelevant to your problem. Are you using a *nix based OS though and was your php.ini file that way to begin with? Or was that line perhaps commented? If that folder doesn't exist you can remove that from your include path As mentioned before you need to put lib/Zend somewhere. Change your include_path to the directory that contains ZF: include_path = ".:/path/to/zend_framework" Quote Link to comment https://forums.phpfreaks.com/topic/175003-ust-working-out-how-to-use-zend-how-do-i-install/#findComment-922816 Share on other sites More sharing options...
jarv Posted September 22, 2009 Author Share Posted September 22, 2009 I am using a mac with PHP5 installed ok so I changed it to ; UNIX: "/path1:/path2" include_path = ".:lib/zend" and put my zend folder in a lib folder within sites so now when i go to my browser: http://localhost/~john/lib/zend/ I can see the files but can't open them?! Quote Link to comment https://forums.phpfreaks.com/topic/175003-ust-working-out-how-to-use-zend-how-do-i-install/#findComment-922827 Share on other sites More sharing options...
trq Posted September 22, 2009 Share Posted September 22, 2009 I can see the files but can't open them?! What do you mean open them? Zend is a framework and the files within lib/Zend contain classes to be used within your own projects, they don't display anything when viewed via a browser. You really need to take a look at the quickstart but from here, it sounds like you've allot of ground to yet cover before you even bother using any framework. Quote Link to comment https://forums.phpfreaks.com/topic/175003-ust-working-out-how-to-use-zend-how-do-i-install/#findComment-922829 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.