草庐IT

avformat_find_stream_info

全部标签

php - 为什么 php file_info 为空文本文件返回 inode/x-empty?

我目前正在开发一个包装finfo_file函数的类。以下脚本为所有空文本文件返回inode/x-empty:$finfo=finfo_open(FILEINFO_MIME_TYPE);echofinfo_file($finfo,'/path/to/text_file.txt');在以下环境中测试并收到相同的结果。WAMPWindows7PHP5.4.27Apache2.2.22LinuxUbuntuPHP5.5.10Apache2.4.9我的目标是设置类,以便我可以将文件类型列入白名单。如果text/plain的MIME类型被列入白名单,空文本文件将失败,因为它返回inode/x-em

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 - "Unable to find xref table"与 Dompdf0.6a + FPDI

我正在尝试使用dompdf0.6a从html生成一个pdf文件并且工作正常,但随后我需要对其进行加密以进行保护,但出现错误FPDFerror:Unabletofindxreftable-MaybeaProblemwith'auto_detect_line_endings'但是,如果我使用旧的dompdf版本,它工作正常。我猜它会生成fpdi不支持的更新的pdf版本。顺便说一句。我将其追踪到FPDI/pdf_parser.php:208(内部方法pdf_read_xref()) 最佳答案 我能够通过使用Adob​​eAcrobatPr

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 - Laravel:在父表上与 *where* 而不是 *find* 的 Eloquent 关系

我有一个表posts和posts_contents。我只想从一篇文章中获取内容,前提是该文章有display=1。(由于语言支持,我需要两个单独的表)帖子:iduser_iddisplay120221320421posts_contentsidpost_idlang_idnamedescription111HelloWorld221HereIsWhatIwannashow!331Don'tShowtheothers441HeyDisplaythatonetoo所以在laravel中我使用了Eloquent关系,但我只是不明白如何在特定情况下使用它。在文档中我只发现了以下情况:$p=Ap

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 - CakePHP 返回 find ('all' ) 使用 'id' 作为数组索引

因此,我尝试使用“产品”的ID作为每个产品的索引键来返回一个查找“全部”数组。通常它返回:array((int)0=>array('Product'=>array('id'=>'1232','category_id'=>'330','name'=>'Product#1',)),(int)1=>array('Product'=>array('id'=>'1245','category_id'=>'310','name'=>'Product#2',)),(int)2=>array('Product'=>array('id'=>'1248','category_id'=>'312','nam