草庐IT

vfs-stream

全部标签

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

php - stream_notification_callback 似乎不起作用

http://www.php.net/manual/en/function.stream-notification-callback.php据此我不希望以下内容产生错误:'callback'));...但确实如此:Warning:stream_context_create():optionsshouldhavetheform["wrappername"]["optionname"]=$valuein/path/to/file.phponline2这也会产生一个错误:'callback'));具有讽刺意味的是,stream_notification_callback示例中的代码没有产生错

php - PHP 生成的 JSON 文件具有 application/octet-stream mime 类型

我有一个脚本可以从数据生成一个JSON文件。我有第二个脚本,它从目录中读取文件以仅获取JSON文件并将它们插入数据库。问题是第二个脚本从我生成的文件中检测到“application/octet-stream”MIME类型,而不是application/json我不想允许application/octet-streamMIME类型,因为它可以是任何东西(出于安全原因:第二个脚本加载所有json文件目录(不仅是生成的目录))。有没有办法为文件“设置”MIME类型?生成文件的代码:if($r_handle=fopen($s_file_name,'w+')){fwrite($r_handle,