当前位置: 绿色php资源 > php典型模块 >

file_get_contents发送头部模拟cookie登入

内容简介

软件类型:国产软件    授权方式:共享软件
界面语言:简体中文    软件大小:未知
文件类型:.exe      发布时间:2010-11-13

file_get_contents发送头部模拟cookie登入

  1. <?php  
  2. // 绿色php资源 http://www.phpzy.com  
  3. $opts = array(  
  4.   'http'=>array(  
  5.     'method'=>"GET",  
  6.     'header'=>"Accept-language: en\r\n" .  
  7.               "Cookie: foo=bar\r\n" 
  8.   )  
  9. );  
  10.  
  11. $context = stream_context_create($opts);  
  12.  
  13. // Open the file using the HTTP headers set above  
  14. $file = file_get_contents('http://www.phpzy.com/', false, $context);  
  15. ?>  

 

温馨提示:
①:如果您发现有file_get_contents发送头部模拟cookie登入免费下载,而绿色php资源未能索引到,请及时通知我们。您的热心是对绿色php资源网最大的支持。
②:file_get_contents发送头部模拟cookie登入是优秀的免费的资源,索引file_get_contents发送头部模拟cookie登入链接到本站只是为了让您方便下载。支持作者请购买正版。
③:本网站是一个免费绿色php资源下载站,仅提供file_get_contents发送头部模拟cookie登入资源免费下载,若有下载file_get_contents发送头部模拟cookie登入资源者请24小时后自行删除。
④:如果作品浏览,或对file_get_contents发送头部模拟cookie登入作品内容、版权等方面有质疑,或对绿色php资源网有意见建议请及时反馈给我们,以便我们及时处理!

下载地址
标签(Tag):file_get_contents cookie登入
------分隔线----------------------------