草庐IT

Installation-Directory-Variables

全部标签

php - "assets:install"命令失败,错误为 "The target directory "web "does not exist",为什么?

我正在Docker容器中运行Symfony3应用程序。我创建了一个包含所有资源(js、css、图像)的CommonBundle。此资源符号链接(symboliclink)到另一个路径,如下所示:$dockerexec-uwww-data-itdockeramp_php_1ls-laoneview_symfony/src/CommonBundle/Resources/publictotal8drwxrwsr-x2www-datawww-data4096Feb2321:09.drwxr-sr-x5www-datawww-data4096Feb2320:54..lrwxrwxrwx1root

php - 烦人的 PHP 错误 : "Strict Standards: Only variables should be passed by reference in"

我制作了这个小脚本,但我无法得到这个错误:严格的标准:只有变量应该在C:\xampp\htdocs\includes\class.IncludeFile.php中第34行通过引用传递!这是页面:namespaceCustoMS;if(!defined('BASE')){exit;}classIncludeFile{private$file;private$rule;function__Construct($file){$this->file=$file;$ext=$this->Extention();switch($ext){case'js':$this->rule='file.'">

php - 消息 : cache_dir must be a directory

大家好,我在使用ZendFramework时遇到了一些问题。我首先收到以下消息:消息:无法确定临时目录,请手动指定cache_dir。我用谷歌搜索并找到这篇文章:ZendFramework:Couldnotdeterminetempdirectory,pleasespecifyacache_dirmanually我读了它,现在当我填写表格时出现以下错误:(我把..放在错误中的任何地方都表示域。)消息:cache_dir必须是一个目录-#0/home/daan/domains/../library/Zend/Cache/Backend/File.php(154):Zend_Cache::

php - 交响乐 3 : Passing variables into forms

我正在使用Symfony3Forms构建,并且需要在表单中检索依赖于当前用户的集合以在下拉列表中呈现。使用EntityType我可以检索所有实体的列表,但我希望能够运行自定义查询,该查询仅检索与当前用户对象有关系的实体。我已阅读有关表单和EntityType的文档,其中解释了自定义查询并提到将集合作为参数传递。但我在任何地方都找不到关于如何实现这一点的说明。理想情况下,我想传入一个我在Controller中策划的集合,传入用户对象以在表单内运行查询,或者以其他方式访问表单中的用户ID以运行查询.有没有人找到类似的解决方案? 最佳答案

php - 无法打开流 : No such file or directory

您好我是php的新手,我正在处理图像上传和裁剪,并在Windows7上的zend中保存bth上传和裁剪图像,但它给了我这些错误。请帮助我解决这些错误。Warning:imagecreatefromjpeg(public/image/)[function.imagecreatefromjpeg]:failedtoopenstream:NosuchfileordirectoryinC:\wamp\www\ModuleEx.com\application\modules\admin\controllers\IndexController.phponline64Warning:imagecop

php - 安装了 php71w-gd 并收到错误 GD Library extension not available with this PHP installation

我在centos7服务器和nginx网络服务器上使用laravel网络框架,我安装了php71w-gd,但当我想上传文件时仍然出现此错误Intervention\Image\Exception\NotSupportedExceptionGDLibraryextensionnotavailablewiththisPHPinstallation.你可能需要知道这个#php-i|grepgd/etc/php.d/gd.ini,gdgd.jpeg_ignore_warning=>1=>1 最佳答案 @HamedAbdollahi请检查以下步

php - Zend Framework : Could not determine temp directory, 请手动指定一个 cache_dir

我正在学习Zend框架。我创建了一个简单的Zend_Form,当我提交表单时出现以下错误:AnerroroccurredApplicationerrorExceptioninformation:Message:Couldnotdeterminetempdirectory,pleasespecifyacache_dirmanuallyStacktrace:-0H:\Documents\IIS_Server_Root\zendframework\Zend\Cache\Backend.php(197):Zend_Cache::throwException('Couldnotdeter...'

PHP 警告 : No such file or directory in Unknown on line 0

我在Linux中使用托管,并在Apache2服务器的网站中配置了子域。我正在使用laravel,但默认情况下我没有使用apache2服务。我正在使用laravelartisan命令。phpartisanserve--host0.0.0.0它会监听8000端口。所以为了访问我的网站,我使用了http://myipaddress:8000。访问它。我试过“chmod755or777publicfolder”但还是没用。我的.htaccess在laravel/public文件夹中.htaccessOptions-MultiViewsRewriteEngineOn#RedirectTraili

PHP file_exists 但重命名失败 "No such file or directory..."?

这个问题不太可能帮助任何future的访问者;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况有关,这些情况并不普遍适用于互联网的全局受众。为了帮助使这个问题更广泛地适用,visitthehelpcenter.关闭9年前。考虑到有问题的文件的创建有点滞后于有问题的函数,我尝试运行一个while循环来争取一点时间,然后再调用重命名。$no_file=1;while($no_file&&$no_file在这个配置中,我认为rename()只能在file_exists()返回true时被调用,但对于我的生活我无法弄清楚如何/为什么rename()被调用然后返回失败...PHPWa

php - Zend 框架 2 : Get the path to the root directory of the application

如何获取应用程序根目录的路径。在ZendFramework1中,您可以使用常量APPLICATION_PATH,我们如何在ZendFramework2中获取它?谢谢。 最佳答案 你不应该需要。如果您使用骨架应用程序,它会在应用程序根目录中执行一个chdir();因此,将从该路径创建相对路径。如果您需要完全限定的路径,请调用getcwd()。 关于php-Zend框架2:Getthepathtotherootdirectoryoftheapplication,我们在StackOverflo