草庐IT

simple_permissions

全部标签

php - 无法打开流 : Permission denied in Laravel 5. 4 即使 Al 文件权限也被授予使用 Laravel 5.4 中的存储功能的路径

我正在尝试将文件上传到Laravel5.4中的C:\Users\sandeep\maxo\storage\app\public文件夹。我正在使用下面的代码{{csrf_field()}}ImportCSVorExcelFile$path=$request->file('import_file')->store('public');是laravel代码。但是我遇到这样的错误fopen(C:\Users\sandeep\maxo\storage\app\public/K4oIHMXveyx2VChmAXAcNkTmoIXKACvqoIbbHCeB.):failedtoopenstream:

PHP Simple HTML DOM Parser 不处理无效的 HTML - 在第一次试用时卡住了

我正在尝试使用PHPSimpleHTMLDOMParser绝对没有运气。我的例子很简单,似乎符合手册中给出的例子(simplehtmldom.sourceforgeATnet/manual.htm)但它只是行不通,这让我难以自拔。使用简单dom给出的其他示例脚本工作正常。参见示例:linktext这是我找到的最简单的示例...如何解析它?我应该用Perl来做吗?示例HTML页面是无效的HTML。我不知道SimpleHTMLDOMParser是否能够处理格式错误的HTML(可能不是)。好吧:如果我无法让它运行,我可以尝试一些Perl解析器,例如HTML::TreeBuilder::XPa

php - "zip I/O error: Permission denied"执行命令

我正在尝试使用exec命令递归压缩目录,首先,出于大纲原因,我不需要zipArchive类,但是当我传递此命令时在exec命令中我收到一条错误消息:zipI/Oerror:Permissiondenied对于这个命令:cd../../;zip-Ptemppasswordhtml/acp/backup/filename.zip-rhtml/2>&1它从位于/var/www/html/acp/config.php的脚本开始,它将在cd之后移动到www目录。./../,然后将html目录压缩,并将zip文件存入/var/www/html/acp/backup/目录。但不幸的是我得到了一个权限

php - Symfony 应用程序 403 禁止错误 : You don't have permission to access/on this server

我试图在CentOS7linode服务器上运行symfony应用程序,但出现错误:Cannotservedirectory:NomatchingDirectoryIndex(index.html,index.php)我用这个配置为这个子域设置了一个虚拟主机:ServerAdminpak11273@gmail.comServerNamemisterServerAliasproject.mystuff.comDocumentRoot/var/www/html/projectErrorLog/var/www/html/project/logs/error.logCustomLog/var/w

php - 使用 Linkedin OAuth api : keeps asking permissions authentication 登录

我将我的网站与LinkedinOAuthapi集成以检索基本配置文件设置,这是登录我的网站的唯一方法(因此每次登录都应通过Linkedin)。用户必须在登录时授予权限。但是现在每次登录都会发生这种情况;我无法让Linkedin记住用户已经授予访问权限(所以我想要的是它第二次自动重定向回我的网站)我在每次成功登录时都会收到一个访问token,我将它保存在数据库中,但找不到在后续请求中使用它的方法(我什至不确定这是否是我应该做的吗?)我用来登录的端点是:"https://api.linkedin.com/uas/oauth/authorize?oauth_token=".$token其中$

PHP 警告 : require_once(/var/www/html/wp-config. php) : failed to open stream: Permission denied in/var/www/html/wp-load. php on line 37

我正在apache上创建一个Wordpress应用程序服务器,在访问url时收到错误500。因此,我确实检查了httpd/logs/error_log,以下是错误[SunJan1522:42:54.4403492017][:error][pid767][client10.203.116.148:9173]PHPWarning:require_once(/var/www/html/wp-config.php):failedtoopenstream:Permissiondeniedin/var/www/html/wp-load.phponline37[SunJan1522:42:54.44

php - 谷歌 PHP 客户端 API : Insufficient Permission

我有使用GooglePHP客户端API来使用云端硬盘服务的PHP代码。setApplicationName("GoogleDriveSample");$key=file_get_contents(KEY_FILE);$client->setClientId(CLIENT_ID);$client->setAssertionCredentials(newGoogle_Auth_AssertionCredentials(SERVICE_ACCOUNT_NAME,array('https://www.googleapis.com/auth/drive'),$key));$client->set

php - 自定义 Wordpress 3.5.2 插件 "You do not have sufficient permissions to access this page."

我一直在尝试按照http://net.tutsplus.com/tutorials/wordpress/creating-a-custom-wordpress将名为custom_rss的自定义Wordpress插件集成到Wordpress中-plugin-from-scratch/.我已经在settings的菜单项中成功获得了正确的URL。但是,当我单击设置下的custom_rss链接时,加载插件的url仅返回带有文本的内容Youdonothavesufficientpermissionstoaccessthispage.。我以super用户管理员身份登录。单击菜单项时触发的脚本是wo

php - require_once : failed to open stream: Permission denied(lampp)

我需要帮助解决htdocs文件夹中的权限错误,因为我需要更改它们以首先添加文件夹。这是我的init.php文件:我尝试通过`包含它当我运行我的index.php文件时,我得到这个错误:Warning:require_once(../../htdocs/PHP-Wizard/helpers/system_helper.php):failedtoopenstream:Permissiondeniedin/opt/lampp/htdocs/PHP-Wizard/core/init.phponline9Fatalerror:require_once():Failedopeningrequire

PHP : add write permission to file after move_uploaded_file()

用PHP上传图像后,我想使图像文件可写,以便为其添加水印。以下是我使用的代码:if(isset($_FILES['file_poster']['tmp_name'])&&$_FILES['file_poster']['tmp_name']!=''){$random_filename=substr(md5(time()),0,9);$ext='.jpg';if(strpos(strtolower($_FILES['file_poster']['name']),'.png')>-1){$ext='.png';}move_uploaded_file($_FILES['file_poster'