草庐IT

stream_bufs

全部标签

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 - file_put_contents(.../bootstrap/cache/services.json) : failed to open stream: No such file or directory

我在运行任何phpartisan命令时一直收到此错误。[ErrorException]file_put_contents(/Applications/MAMP/htdocs/code/bheng/md-bheng/bootstrap/cache/services.json):failedtoopenstream:Nosuchfileordirectory我该如何阻止它? 最佳答案 编辑-如果services.json文件不存在,运行phpartisanserve然后停止强制创建文件。请参阅:laravelservices.jsonn

php - 使用 Graph API 通过 PHP 发布到 Facebook Stream

我正在尝试使用新的图形API和PHP将消息发布到用户的墙上。连接似乎工作正常,但没有出现任何帖子。我不确定如何正确设置发布代码。请帮帮我。抱歉,看起来很糟糕的代码,出于某种原因,StackOverflow不想在代码块中将其全部关闭。下面是我的完整代码。我是否缺少扩展程序权限请求,或者是否在这段代码中得到了注意:PHP代码'xxxxxxxxxxxxxxxxxx','secret'=>'xxxxxxxxxxxxxxxxxxxxxxxxxx','cookie'=>true));$session=$facebook->getSession();if(!$session){$url=$faceb

php - stream_socket_client 通过 http 代理

我正在研究APNS(Apple推送通知服务)。我正在按照教程所说的那样做:$ctx=stream_context_create();stream_context_set_option($ctx,'ssl','local_cert','ck.pem');stream_context_set_option($ctx,'ssl','passphrase',$passphrase);$fp=stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195',$err,$errstr,60,STREAM_CLIENT_CONNECT|

php - Facebook stream.publish 的先决条件是什么?

我想知道是否有人会帮助我解决我的stream.publish测试问题。我以为我拥有所有正确的作品。这是代码:require_login();$message="Willthisstatusshowupandallowmetodominatetheworld?!";$uid=$user_id;echo$uid;$facebook->api_client->stream_publish($message,$uid);我期望的是我的状态更改为$message的内容。相反发生的是我的UID被回显,然后它抛出500错误。我已经允许publish_stream以及offline_access(通过

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 警告 : file_get_contents failed to open stream: HTTP request failed! HTTP/1.1 400 错误请求

我已经使用Codeigniter构建了一个本地DVD数据库,其中包含电影名称等。我想要做的是从thisIMDBAPI加载更多电影数据。.但是我收到以下错误:APHPErrorwasencounteredSeverity:WarningMessage:file_get_contents(http://www.imdbapi.com/?i=&t=2Fast2Furious)[function.file-get-contents]:failedtoopenstream:HTTPrequestfailed!HTTP/1.1400BadRequestFilename:controllers/dv

php - stream_socket_enable_crypto() : Peer certificate CN =`cs723.mojohost.com' did not match expected CN =`smtp.sendgrid.net'

我们正在尝试向新成员(member)发送自动回复邮件。我们在同一台服务器上的其他站点上使用相同的配置,没有问题。发送电子邮件后,返回以下错误:stream_socket_enable_crypto():PeercertificateCN=cs723.mojohost.comdidnotmatchexpectedCN=smtp.sendgrid.nethttps://gyazo.com/ffb0cb7645d51ed21ecc863f1e3196b2我们使用Laravel连接到:smtp.sendgrid.net网站端口-587使用TLS加密我们尝试了以下但没有成功:端口选项25和252

php - Windows 更新警告 : Unknown: failed to open stream: No such file or directory in Unknown on line 0

Warning:Unknown:failedtoopenstream:NosuchfileordirectoryinUnknownonline0Fatalerror:Unknown:Failedopeningrequired'C:/School/OneDrive-Noorderpoort/PHP/htdocs/Jaar1/Blok1/Les7/oefening16.php'(include_path='C:\xampp\php\PEAR')inUnknownonline0经过长时间的Windows更新后,当我尝试通过本地主机打开php文件时突然出现此错误。我该如何解决这个问题?

php - 警告 : move_uploaded_file() failed to open stream

我正在尝试通过ftp上传文件。这是我的代码$jname="AccountsofBiotechnologyResearch";if(!is_dir('/Trade/upload/'.$jname)){mkdir('/Trade/upload/'.$jname);//line63}move_uploaded_file($_FILES["submission_file"]["tmp_name"],"/Trade/upload/$jname/".$dup_name);//line67Trade是public_html文件夹中的一个文件夹。当我上传一个文件时,它会给我一个警告,比如,Warnin