草庐IT

Env_file

全部标签

php - 组件安装错误 : JInstaller: :Install: File does not exist

我只是按照这个video创建了一个组件.我创建了名为admin.zip的组件。我在joomla3.0中安装时收到以下警告。WarningJInstaller::Install:FiledoesnotexistC:\wamp\www\Content\tmp\install_52009de34a2c1\site\language\en-GB.com_helloworld.iniJInstaller::Install:FiledoesnotexistC:\wamp\www\Content\tmp\install_52009de34a2c1\admin\language\en-GB.com_h

php - imagick readImageBlob 给出 'uable to open file' 错误

我收到以下错误:PHPfatalerror:未捕获的异常“ImagickException”,消息“无法打开图像`/tmp/magick-2244K7gyKdSJDqKW':/var/www/中没有这样的文件或目录@error/blob.c/OpenBlob/2658”nodeviz-read-only/www/NodeViz/library/GraphVizExporter.php:454引用的相关代码在这里:$im=newImagick();$im->setFormat('svg');#removelabelsfromtherasterversion$im->readImageBl

php - Behat:Goutte/Guzzle 通过 cURL "Warning: curl_setopt_array(): 3607 is not a valid File-Handle resource"下载文件

使用Behat测试一些涉及下载文件的行为。使用Goutte和Guzzle拦截文件下载,以便我可以在另一步骤中与其进行交互。//Wheretoputthefile$tmpFile='download.zip';$handle=fopen($tmpFile,'w');$goutteDriver=$this->getSession()->getDriver();$goutteClient=$goutteDriver->getClient();/**@var\Guzzle\Http\Client$guzzleClient*/$guzzleClient=$goutteClient->getCli

php - file_get_contents 不在本地主机上工作,但在在线网络服务器上工作

$json=file_get_contents('http://localhost/hts2015/data/functions.php?tag=FIND');$json=file_get_contents('http://www.hptsprofessional.tk/data/functions.php?tag=FIND');$jsonD=json_decode($json);$no=count($jsonD);2014年,我在我的本地主机上使用相同的代码通过file_get_contents()访问数据。它对我来说工作正常,它可以在本地主机上工作,也可以通过更改url在在线服务器

php - 代理后面的第 3 方 file_get_contents

我正在使用第3方库,它使用file_get_contents()来检索外部文档。因为我在代理后面,所以我得到了错误:file_get_contents(http://json-ld.org/contexts/person.jsonld):failedtoopenstream:Connectiontimedout我通过stream_context_create()使用代理设置测试了file_get_contents():$context=stream_context_create(['http'=>['proxy'=>'tcp://SERVERNAME:PORT','request_fu

javascript - $_FILES 使用 DropzoneJS 和 Symfony 1.4 返回空

我在网上搜索了几篇SO和博客文章,但找不到有用的东西。我正在尝试设置一个简单的HTML拖放表单,用户可以在其中通过DropzoneJS一次上传多个文件。HTML:'method="post"enctype="multipart/form-data"class="dropzone"id="basic_menu_dropzone">SUBMITJavascript:jQuery(document).ready(function($){Dropzone.autoDiscover=false;vardropzone=newDropzone('#basic_menu_dropzone',{par

php - 使用 file_get_contents() 进行抓取时强制使用桌面版网站

我正在使用FriendsOfPHP/Goutte包抓取网站。一切都很好。当用户将URL粘贴到输入中时,我正在为image、title等开放图形标签抓取网站。当用户从移动设备复制URL时会出现问题,该URL现在是移动URL,例如https://m.datpiff.com/tape/818948,并且该URL上没有开放图标签。当我访问相同的URL并将子域m替换为www时,例如https://www.datpiff.com/tape/818948从桌面,它将我重定向到:http://www.datpiff.com/Chance-The-Rapper-Jeremih-Merry-Christm

php - 如何为 Amazon SQS 运行队列和配置 Laravel ENV

我在Laravel5.2应用程序中使用AmazonsSQS时遇到问题。当我使用数据库队列驱动程序时,我的应用程序排队事件工作正常,但当我使用sqs时却不行我想我可能没有正确传递Amazon的凭据。这是我从我的ENV文件中设置的我已经安装了aws/aws-sdk-phpQUEUE_DRIVER=sqsSQS_PUBLIC_KEY=PUBLICKEYSQS_SECRET_KEY=SECRETKEYSQS_PREFIX=https://sqs.us-west-2.amazonaws.com/NUMBERSQS_QUEUE=QUE我的配置/队列是这样的:'sqs'=>['driver'=>'s

php - 我不明白 file_exists 和 scandir 是怎么回事

我正在帮助一位friend为他的一个脚本编写一个比较合理的缓存函数。它实际上使用9个不同的SQL查询来获取排行榜数据(其中一个非常费力)我想出了为它创建缓存的想法,开始时是这样的://Cachedirectory$cacheDir="/cache";//Pathtocachedirectory$cachePath="/var/www/html/test";//Bettersafethansorryif(!file_exists($cachePath.$cacheDir)){mkdir($cachePath.$cacheDir,0777,true);}//Cacherebuildswit

php - simplexml_load_file() 错误

我对PHP比较陌生,对XML更是如此。我有一个脚本可以在我的本地主机上完美运行,但是当我尝试将它放在我的服务器上时,我收到以下消息:Warning:simplexml_load_file()[function.simplexml-load-file]:http://api.wefeelfine.org:8080/ShowFeelings?display=xml&feeling=happy&returnfields=imageid,feeling,sentence,posttime,postdate,posturl,gender,country,state,city,lat,lon&li