zend

Zend Framework Error: Failed opening required 'Zend/Application.php'

匿名 (未验证) 提交于 2019-12-03 00:53:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get the following error when I try to run the project created by Zend Framework. Its looking for Zend/Application.php and that is available in the directory that is in my include_path. I do have read permissions on the directory. PHP Fatal error: require_once() [function.require]: Failed opening required 'Zend/Application.php' (include_path='/var/www/vhosts/moderncloud.net/om/library:.:/var/www/vhosts/moderncloud.net/om /library:') in /var/www/vhosts/moderncloud.net/om/public/index.php on line 24 <?php // Define path to application

Zend Mail Gmail SMTP

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi I'm trying to send some emails via gmail from the Zend_Mail module. This is my code: $config = array( 'ssl' => 'tls', 'port' => 587, 'auth' => 'login', 'username' => 'webmaster@mydomain.com', 'password' => 'password' ); $smtpConnection = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config); Error: Warning: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto in /library/Zend/Mail/Protocol/Smtp.php on line 206 Unable to connect via TLS I tried telling my hosting provider to enable the openssl.dll in

Disable Zend Autoloader

匿名 (未验证) 提交于 2019-12-03 00:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I disable the Zend_Loader_Autoloader? 回答1: You could manually force the Autoloader to unload, but this may lead to trouble with components depending on it being registered: make sure your other loader covers that. spl_autoload_unregister(array('Zend_Loader_Autoloader','autoload')); I stripped this from the constructor of Zend_Loader_Autoloader, and changed it to work outside of the class, and to unregister instead of register the loader. 回答2: If you're using the Zend_Application, in your index.php, after creating the instance of ZA,

WordPress缓存优化,就是快

∥☆過路亽.° 提交于 2019-12-03 00:14:50
现在装了 Zend Opcache 之后,博客访问速度又加快了不少。现在维持在15 queries in 0.179 seconds左右。说说我目前达到快速的一些WordPress缓存优化。 1、主题 首先写主题的时候必须是精简,一些php语法和WP标签需要去研究,这个我就不细说,有空咱们再一起交流。 2、object cache WordPress启用了 object cache ,这是WordPress对象缓存,相当有效。 3、memcache、memcached php-memcache与memcahed,这两个一起配合object cache使用,参见: 同服务器多个WordPress下配置memcache object-cache 2 。当然,如果你的服务器是一个WordPress,就简单了。 4、XCache XCache 是一个又快又稳定的 PHP opcode 缓存器. 经过良好的测试并在大流量/高负载的生产机器上稳定运行. 经过(在 linux 上)测试并支持所有现行 PHP 分支的最新发布版本, 如 PHP_5_1 PHP_5_2 PHP_5_3 PHP_5_4. 并完美支持线程安全/Windows. 与同类 opcode 缓存器相比更胜一筹, 比如能够快速跟进 PHP 版本。 5、Zend Opcache Zend Opcache 是 Optimizer+ 是

PHP的发展历程

匿名 (未验证) 提交于 2019-12-02 22:11:45
PHP的发展历程 了解一门语言,我们必须知道这门语言的发展史,现在我通过版本的变化以时间轴的形式来说明PHP的发展历程。 1.1995年初PHP1.0诞生 Rasmus Lerdof发明了PHP,这是简单的一套Perl脚本,用来跟踪访问者的信息。这个时候的PHP只是一个小工具而已,他的名字叫做“Personal Home Page Tool”(个人主页小工具)。 2.1995年6月PHP2.0诞生 Rasmus Lerdof用C语言来重新开发了这个工具,取代了最初的Perl程序。这个新的用C写的工具最大的特色就是可以访问数据库,可以让用户简单的开发动态Web程序了。这个用C写的工具又称为PHP/FI。它已经有了今天PHP的一些基本功能了。 3.1998年6月PHP3.0诞生 虽然说1998年6月才正式发布PHP3.0,但是在正式发布之前,已经经过了9个月的公开测试。 Andi Gutmans 和 Zeev Suraski 加入了PHP开发项目组。这是两个以色列工程师,他们在使用PHP/FI 的时候发现了PHP的一些缺点,然后决定重写PHP的解析器。 在这个时候,PHP就不再称为 Personal Home Page 了,而改称为 PHP : Hypertext Preprocessor。 PHP 3.0 是最像现在使用的PHP的第一个版本,这个重写的解析器也是后来Zend 的雏形

Zend Studio下的PHP代码调试

匿名 (未验证) 提交于 2019-12-02 22:11:45
原文地址为: Zend Studio下的PHP代码调试 Zend Studio php 安装 Zend Debugger http://downloads.zend.com/pdt/server-debugger debugger 下载 zip 解压缩。得到一个目录 x _ x _x_comp x _ x _x_nts_comp x nts 指 non thread safe phpinfo php thread safe 1 ZendDebugger.dll php php /ext/ 2 4 php.ini [Zend] zend_extension_ts=C:/wamp/bin/php/php5.2.9-2/ZendDebugger.dll ; ts zend_debugger.allow_hosts=127.0.0.1 zend_debugger.expose_remotely=always 127.0.0.1 IP web 3 dummy.php apache document root 4 apache 5. Zend Studio Tools->preferences->debug 6. “A timeout occurred when the debug server attempter to connect to the following client

Ubuntu 下安装 PHP 7.1.17

匿名 (未验证) 提交于 2019-12-02 22:11:45
sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.1-fpm php7.1-mcrypt php7.1-cli php7.1-xml php7.1-mysql php7.1-gd php7.1-imagick php7.1-recode php7.1-tidy php7.1-xmlrpc 确认安装成功 php -v PHP 7.1.18-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jun 11 2018 14:22:30) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.1.18-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies 文章来源: Ubuntu 下安装 PHP 7.1.17

PHP模块没有安装好,出现PHP warning,怎么去除错误

匿名 (未验证) 提交于 2019-12-02 22:11:45
例如这种警告 [root@xxxxx modules]# php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/libevent.so' - /usr/lib64/php/modules/libevent.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 7.1 .17 (cli) (built: Apr 26 2018 14 : 47 : 28 ) ( NTS ) Copyright (c) 1997 - 2018 The PHP Group Zend Engine v3 .1 .0 , Copyright (c) 1998 - 2018 Zend Technologies with Zend OPcache v7 .1 .17 , Copyright (c) 1999 - 2018 , by Zend Technologies 这是因为libevent模块没有安装好,但是又加载了此模块,所以报了这种警告 解决办法: vim /etc/php .ini 看到这句话 ;;;;;;;;;;;;;;;;;;;;;; ; Dynamic

深入剖析PHP7内核源码(一)- PHP架构与生命周期

匿名 (未验证) 提交于 2019-12-02 22:11:45
全新的zval 更节约的空间,栈上分配内存 zend_string 存储字符串的Hash值,数组查询的时候不需要进行Hash计算 在HashTable桶内直接存数据,减少了内存的申请次数,提升了cache命中率和内存访问速度 zend_parse_parameters改为了宏实现,性能提升5% 增加opcode指令 call_user_function,is_init/string/array,strlen,defined函数变成opcode指令,速度更快 排序算法的改进 Zend 引擎:Zend引擎为PHP提供了基础服务,包括词法分析 语法分析 ,AST抽象语法树编译 opcodes执行,PHP的变量设计、内存管理、进程管理。 PHP层:绑定了SAPI层并处理与它的通信,它同时对safe_mode和open_basedir的检测提供一致的控制层,将fopen()、fread()和fwrite()等用户空间的函数与文件和网络I/O联系起来。 SAPI:包括了cli fpm等,把接口对外接口都抽象出来,只要遵守SAPI协议便可以实现一个server。 拓展:zend 引擎提供了核心能力和接口规范,在此基础上可以开发拓展 这里的拓展分为了两种,通常在php.ini中,通过extension= 加载的扩展我们称为PHP扩展,通过zend_extension=