草庐IT

profile-directory

全部标签

php - 是什么导致消息 "Failed loading/usr/lib/php/modules/xdebug.so"("No such file or directory")?

当我运行php--version(在CentOS版本6.4上)时,我得到:#php--versionFailedloading/usr/lib/php/modules/xdebug.so:/usr/lib/php/modules/xdebug.so:cannotopensharedobjectfile:NosuchfileordirectoryPHP5.4.19(cli)(built:Aug22201308:03:53)Copyright(c)1997-2013ThePHPGroupZendEnginev2.4.0,Copyright(c)1998-2013ZendTechnologi

php - WordPress - PHP 警告无法打开流 : No such file or directory (advanced-cache. php)

我在后端和前端页面(WordPress)上收到此PHP警告,但不知道如何解决:Warning:include(/home/.../public_html/wp-content/advanced-cache.php):failedtoopenstream:Nosuchfileordirectoryin/home/.../public_html/wp-settings.phponline84Warning:include():Failedopening'/home/.../public_html/wp-content/advanced-cache.php'forinclusion(incl

用于 Apache 之上实时系统的 PHP Profiler

我在Apache服务器上有一个PHP网站,我想知道是否有工具和其他方法可以对此进行分析以找出代码中的瓶颈。我需要知道的是哪些功能需要很长时间才能处理等。类似于gprof,除了实时apache服务器上的PHP。还有哪些其他方法可以找到PHP系统中的瓶颈。 最佳答案 您可以使用xdebug-安装后您可以触发profilingofrequests以多种方式,您最终会为每个请求提供一个valgrind格式配置文件。将此加载到WinCacheGrind,KCacheGrind或类似的并向下钻取以找到所有时间都花在哪里!

php - 无法打开流 : Is a directory in

我在尝试使用php将上传的文件从临时文件夹移动到所需的文件夹时收到以下警告警告:move_uploaded_file(test/)[function.move-uploaded-file]:failedtoopenstream:Isadirectoryin/home/..../filename.phponline69警告:move_uploaded_file()[function.move-uploaded-file]:无法将“/tmp/phpKrCpQw”移动到第69行的/home/..../filename.php中的“test/”以下是出现错误的第67行和第69行:$destin

php - 在 Mac 上设置 Laravel php artisan migrate 错误 : No such file or directory

这个问题在这里已经有了答案:MySQLconnectionnotworking:2002Nosuchfileordirectory(22个回答)关闭6年前。将一个完美运行的laravel项目从git拉入运行MAMP的mac。项目在linux机器上完美运行。Composer安装phpartisanmigrate,得到如下错误:[PDOException]SQLSTATE[HY000][2002]Nosuchfileordirectory注意:php-v是5.5而mysql-v是5.5从终端这是我的config/database.php的一部分'mysql'=>array('driver'

php - 在 Mac 上设置 Laravel php artisan migrate 错误 : No such file or directory

这个问题在这里已经有了答案:MySQLconnectionnotworking:2002Nosuchfileordirectory(22个回答)关闭6年前。将一个完美运行的laravel项目从git拉入运行MAMP的mac。项目在linux机器上完美运行。Composer安装phpartisanmigrate,得到如下错误:[PDOException]SQLSTATE[HY000][2002]Nosuchfileordirectory注意:php-v是5.5而mysql-v是5.5从终端这是我的config/database.php的一部分'mysql'=>array('driver'

php - PDO异常 : SQLSTATE[HY000] [2002] No such file or directory

我已将PushChatServer目录放入htdocs文件夹并创建数据库puschat尝试运行@"http://localhost/PushChatServer/api/test/database.php"然后我得到以下异常。我想做同样的事情来解释这个链接http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2我已经完成了所有这些但我得到了这个异常Couldnotconnecttothedatabase.Reason:exception'PDOExceptio

php - 传入电子邮件到 PHP : need to write attachments to web directory

我有一个PHP脚本,它接受所有电子邮件(通配符)到我的域,并将数据插入MySQL。脚本的开头有这一行:#!/usr/bin/php-q它看起来像一个普通的PHP脚本。将附件写入磁盘的部分似乎可以工作,但存储它们的新文件夹的权限是由“nobody”用户创建的。如何编辑权限,以便在将这些文件写入磁盘后,网络服务器/网络服务器用户可以访问它们?感谢您的帮助!(Fedora14Linux服务器,后缀) 最佳答案 您可以通过FTP执行文件系统操作,因此您将拥有与您的用户相同的权限。最好让服务器上的所有PHP用户都能访问您的文件。http://

php - 无法打开流 : No such file or directory, 是的!

我在要求一些文件时遇到问题,PHP告诉我这些文件不存在,但是当我扫描目录时它告诉我它确实存在。我已将文件简化为require功能,但它仍然无法正常工作。这是我的设置:root/test.phptest/test2.phpsub/test3.phptest.phpecho'test';require'test/sub/test3.php';test/test2.php(由于某种原因没有包含的文件)echo'test2';test/sub/test3.phpecho'test3';/*becausewearestillontest.php,theincludepathistherootth

php - vagrant up 错误,改变所有权/vagrant : not a directory

我在笔记本电脑上运行Windows8.164位。我一直在按照本指南尝试为我的Laravel项目设置家园:laravelinstallationandsetup指南tldr:您只需安装vagrant、virtual-box和composer。您可以使用这些来获取家园,然后进行初始化和安装。您配置homestead.yaml并生成sshkey。在这一切之后,您使用vagrantup,让vagrant使用您的开发环境和所有其他东西设置您的Vritual机器。使用gitbash,我按照指南进入“vagrantup”部分。这是问题所在,我收到以下错误:$vagrantupBringingmach