问题描述
如何在不使用zend框架安装的情况下使用zend库?
How to use zend library without using zend framework installation?
我试图在不安装zend框架的情况下使用zend库(邮件和Mime),它不返回任何错误消息... 但是对于我的项目,我仅使用Mail和Mime库,如何在不安装zend framework的情况下使用Zend库..
I am trying to use zend library(Mail and Mime) without zend framework installation, its not returning any error messages... but for my project i'm using Mail and Mime library only, How to use Zend Library without installing zend framework ..
谢谢,Vinoth S
Thanks,Vinoth S
推荐答案
下载Zend Framework并将其放入PHP可以访问的文件夹中.然后要么做
Download Zend Framework and put it into a folder accessible by your PHP. Then either do
include '/path/to/folder/containing/Zend/lib/Zend/Mail.php';
include '/path/to/folder/containing/Zend/lib/Zend/Mime.php';
$mailer = new Zend_Mail;
或者-更好,更方便-设置自动加载器和/或包含路径,以便PHP可以找到直接访问这些类,而不必将其包括在内.
Or - better and more conventient - setup your autoloader and/or include path so PHP can find the classes directly, without you having to include them.
也可以看到
- 要求附录,以获取Zend Framework要求的详细列表.
- the requirements appendix for a detailed list of requirements for Zend Framework.
这篇关于如何在不安装Zend框架的情况下使用Zend库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!