草庐IT

extensible-storage-engine

全部标签

php - 拉维尔 5.4 : how to delete a file stored in storage/app

我想删除存储在storage/app/myfolder/file.jpg中的文件。我尝试了以下代码,但均无效:useFile$file_path=url().'/storage/app/jobseekers_cvs/'.$filename;unlink($file_path);和useFile$file_path=public_path().'/storage/app/myfolder/'.$filename;unlink($file_path);和useFile$file_path=app_path().'/storage/app/myfolder/'.$filename;unlin

php - 使用 PHP 为 Google Cloud Storage 的 JWT 签名 URL

我刚刚开始将我的GoogleCloudStorage代码从API1.0版升级到2.0版,但遇到了一些问题。在1.0版中,我使用签名URL并使用.p12文件取得了巨大成功。但是,在新版本中已弃用,我必须改用Firebase/php-jwt,使用JSON文件。问题是它不工作,我收到错误:SignatureDoesNotMatchTherequestsignaturewecalculateddoesnotmatchthesignatureyouprovided.CheckyourGooglesecretkeyandsigningmethod.PUTimage/png1483626991/my

php - "XDEBUG NOT LOADED AS ZEND EXTENSION"警告是什么意思?

Xdebug已加载,但未作为zend扩展加载。这是什么意思?如何解决这个问题? 最佳答案 此错误表示您使用“extension=”来加载Xdebug。这可能在您的普通php.ini中,或者在某些发行版喜欢添加的名为xdebug.ini的文件中。在任何情况下,Xdebug都需要作为Zend扩展加载,以实现某些功能,例如单步调试。由于Xdebug不能作为普通扩展使用,它也可能会崩溃和烧毁。加载Xdebug作为Zend扩展的语法取决于PHP版本和构建。我建议你使用http://xdebug.org/wizard.php为您提供正确的线路。

php - Laravel 5.3 Storage::put 使用文件名创建一个目录

我正在使用Laravel的文件存储功能来保存文件:publicfunctiondataPost(Request$request){$fileInForm='doc';if($request->hasFile($fileInForm)){$file=$request->file($fileInForm);if($file->isValid()){//Filenameishashedfilename+partoftimestamp$hashedName=hash_file('md5',$file->path());$timestamp=microtime()*1000000;$newFil

php - Laravel chmod(/var/dev/project/storage/oauth-public.key) : Operation failed: Operation not permitted

更新以下软件包后,我收到一个错误,即找不到oauth-public.key文件。Packageoperations:1install,2updates,0removalsUpdatinglaravel/framework(v5.4.27=>v5.4.28):Downloading(100%)Installingdefuse/php-encryption(v2.1.0):Downloading(100%)Updatingleague/oauth2-server(5.1.3=>5.1.4):Downloading(100%)首先我删除了project/storage中的两个oauth-文件

php - 我该如何解决 "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

当我在命令提示符下运行composerinstall时,出现如下错误:Problem1-Installationrequestforlaravel/horizonv1.1.0->satisfiablebylaravel/horizon[v1.1.0].-laravel/horizonv1.1.0requiresext-pcntl*->therequestedPHPextensionpcntlismissingfromyoursystem.Toenableextensions,verifythattheyareenabledinyour.inifiles:-C:\xampp-7.1\ph

php - Composer 错误 : "PHP extension fileinfo is missing from your system"

我正在尝试安装Laravel包干预图像,当我运行composerupdate时:Yourrequirementscouldnotberesolvedtoaninstallablesetofpackages.Problem1-intervention/image2.0.5requiresext-fileinfo*->therequestedPHPextensionfileinfoismissingfromyoursystem.-intervention/image2.0.4requiresext-fileinfo*->therequestedPHPextensionfileinfoism

php - 使用 Laravel 5.0 Storage facade 将元数据、 header (Expires、CacheControl)添加到上传到 Amazon S3 的文件

我正在尝试了解如何将元数据或header(Expires、CacheControl等)添加到使用Laravel5.0存储门面上传的文件中。我已将此处的页面用作引用。http://laravel.com/docs/5.0/filesystem以下代码可以正常工作:Storage::disk('s3')->put('/test.txt','test');经过挖掘,我还发现有一个“可见性”参数将ACL设置为“公共(public)读取”,因此以下内容也可以正常工作。Storage::disk('s3')->put('/test.txt','test','public');但我希望能够为文件的标

PHP | "The requested PHP extension bcmath is missing from your system."

问候开发人员,我正在尝试在我最近启动的开发服务器上为我的PHP项目使用composer,但由于某种原因我无法使用。我成功安装了composer,但是,当我尝试运行require命令时,出现以下错误:root@webserver:/var/mypersonal/index#composerrequirephp-amqplib/php-amqplibPHPWarning:PHPStartup:Unabletoloaddynamiclibrary'/usr/lib/php/20151012/php_openssl.dll'-/usr/lib/php/20151012/php_openssl.

php - laravel Composer 更新 : the requested PHP extension dom is missing from your system

我使用的是ubuntu16.04,laravel5.2当我在我的项目目录中运行updatecomposer时,它显示“您的系统中缺少请求的PHP扩展dom”我检查了已安装的PHP包,它在那里可用 最佳答案 安装xml-extension(在我的例子中是php7.0-xml)解决了这个问题sudoapt-getinstallphp-xml 关于php-laravelComposer更新:therequestedPHPextensiondomismissingfromyoursystem,我