草庐IT

init_from_stream

全部标签

php - haxe (php) https 调用 : stream_socket_client() Peer certificate CN did not match expected CN

我正在使用haxe的Http类(编译为php)通过https将request()发送到AWS。这是一个使用haxe-aws库(https://github.com/Blank101/haxe-aws)的最小示例:variamconf=newIAMConfig('newbucket.s3-eu-central-1.amazonaws.com',accessKey,secretKey,'eu-central-1','s3');varsig4=newSig4Http('https://newbucket.s3-eu-central-1.amazonaws.com/',iamconf);sig

php - Telegram + PHP (Windows 7) : failed to open stream: HTTP request failed! HTTP/1.1 404 未找到

我正在尝试迈出Telegram的第一步,我也是PHP的新手......我已经在我的Windows7电脑上配置了带有PHP5.6.14和SSL的Apache2.4,它在http和https中运行良好。然后我尝试遵循此TelegramBot教程https://www.youtube.com/watch?v=hJBYojK7DO4.一切正常,直到我不得不创建一个像这样的简单PHP程序时";$website="https://api.telegram.org/bot".$botToken;$update=file_get_contents($website."/getUpates");prin

php - Angular 2 : receiving data from php file

所以我试图从php文件中获取JSON数据,但控制台向我显示此错误:EXCEPTION:Unexpectedtoken我只是像这样通过php发送了一个简单的json数组:'Firsttask','description'=>'skdfjsdfsdf','done'=>false,),array('title'=>'Secondtask','description'=>'skdfjsdfsdf','done'=>false,),array('title'=>'Thirdtask','description'=>'skdfjsdfsdf','done'=>false,)];echojson_

php - 请求 stream_tag 表

我正在尝试使用应用程序的phpapi请求stream_tagfacebook表SELECTpost_id,actor_id,target_idFROMstream_tagWHEREtarget_id=me()它只给我10个结果。我怎样才能获得真正的所有结果?我得到了所有这些许可:emailuser_about_meuser_birthdayuser_hometownuser_locationuser_statusfriends_about_mefriends_statusread_streamread_insights 最佳答案 F

PHP/正则表达式 : extracting video id from youtube url- embedded code

我正在尝试从youtubeurl输入中获取嵌入式代码。我偶然发现了这个ANSWER但是现在我将该答案应用于我的代码,但没有得到任何结果。我的目标是让正则表达式将url变成这样:http://www.youtube.com/watch?v=videoid.我怎样才能让正则表达式函数真正与我的代码一起工作?URL:     "name="yurl">Height: "name="yheight">$hth-->Width:  "name="ywidth">$wdth-->Autoplay: "name

php - Joomla : Can a super administrator get the ftp password of that site (from configuration file or any other way)?

我可以作为super管理员访问joomla1.5制作的网站后端。现在我想做的是,关闭该站点并将一个简单的html文件设置为站点主页。为此,我认为我需要ftp用户/密码。有什么办法可以从joomla后端获得该通行证吗?我可以在帮助>系统信息>配置文件中看到一些条目,其中$ftp_user:'xxxxxx'和$ftp_pass:'xxxxxx'。有没有办法知道这些值?即使我无法获得ftp用户/密码,我能否以某种方式使用joomla后端编辑/浏览任何文件/目录? 最佳答案 是的,如果FTP用户/密码保存在Joomlaconfigurati

php - PHP : The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect 中的 FreeTDS 错误

我必须使用ODBC从ArchLinux连接到MSSQL服务器。我使用FreeTDS,并使用isql,它可以正常工作:isqlsqlexpressdev开发但不是在PHP中。我在交互模式下使用PHP:PHP>$conn=odbc_connect("sqlexpress",'dev','Dev');PHP>$a=odbc_exec($conn,'SELECT*FROMmeasures;');PHPWarning:odbc_exec():SQLerror:[FreeTDS][SQLServer]Theincomingtabulardatastream(TDS)remoteprocedurec

php - 警告 : Missing argument 1 when passing parameters from url to controller (laravel)

我正在构建这个网站,我想将url参数传递给路由以及从路由传递给Controller​​,我已经搜索了文档和谷歌,但找不到解决我的问题的方法这是一个示例urllocations/search?q=parameter1我现在的路线是这样的:Route::group(array('prefix'=>'search'),function(){Route::get('locations/{src?}','SearchController@locations',function($src=null){});});我的Controller看起来像这样:classSearchControllerext

php - 使用另一个 "from" header 从 laravel 发送电子邮件

blahblahHi有没有人知道如何设置电子邮件的FROM部分。在电子邮件的配置中,您可以在那里设置它,但我想使用noreply@whatever.com这样的东西,例如下面的代码不起作用Mail::send('emails.auth.activate',array('link'=>URL::route('account-activate',$code),'username'=>$username),function($message)use($user){$message->from('noreply@whatever.com','ActivateAccount');$message

php - puppet : How to stop from PHP code printing in browser window

为了学习,我尝试在Vagrant上使用Puppet提供一个PHPWeb服务器。但是,我在浏览器窗口中获取PHP代码转储,而不是执行。我曾尝试寻找解决问题的方法,但在这里找不到。任何帮助将不胜感激。这是我到目前为止所做的。puppetmaster/manifests/site.ppnode/^puppet/{includepuppetmaster}node/^web/{includewebserverincludephp}puppetmaster/module/webserver/manifests/init.pp(自定义模块)classwebserver{notify{"provisi