草庐IT

city_permissions

全部标签

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'

php - 未捕获的异常 : Error: Permission denied for <https://www. facebook.com> 获取属性 Proxy.InstallTrigger

我有以下代码来从facebook获取用户数据window.fbAsyncInit=function(){FB.init({appId:'the_app_code_here_but_i_didn'tright_it_here',status:true,cookie:true,xfbml:true});};(function(d){varjs,id='facebook-jssdk';if(d.getElementById(id)){return;}js=d.createElement('script');js.id=id;js.async=true;js.src="//connect.fa

php - 在注册期间规范化/验证用户的 'City' 输入

我的问题涉及在注册期间验证/规范化用户输入的国家/地区和“城市”组合。理想情况下,我想要类似于OkCupid(http://www.okcupid.com/signup)注册页面的功能,在该页面中提出了这个问题。失去对城市输入字段的关注会以某种方式验证输入,而且它非常擅长它。我尝试了澳大利亚农村的一个小镇(人口规范化/验证很重要,因为我想规范化用户生成的事件实体的“城市”字段,以允许匹配同一位置的用户。从应用程序逻辑角度(我不想处理'NYC'='NewYorkCity'='NewYork,NewYork'='NewYork'泥潭)和用户视角(其他用户了解用户的位置)。我正在使用PHP和