一、php://input一句话木马在调研dedecms的历史漏洞时,发现了dedecms安装文件曾经出过被植入后门的漏洞(SSV-ID站点include目录下shopcar.class.php文件被植入一句话木马)@eval(file_get_contents('php://input'))我是个...
分类:
Web程序 时间:
2015-05-19 12:41:25
阅读次数:
164
如: $tmplCacheFile = $this->tmplVarReplace(file_get_contents($tmplCacheFile));Strict Standards: Only variables should be passed by reference in /dat...
分类:
其他好文 时间:
2015-05-19 10:18:13
阅读次数:
95
主要用到了:file_get_contents();preg_match_all(); 这2个函数查看地址:http://git.oschina.net/xiaoz6/phpExample
分类:
Web程序 时间:
2015-05-18 14:17:15
阅读次数:
125
1:file_get_contents,file_put_contents方式<?php functiondownload_remote_file($file_url,$save_to)
{
$content=file_get_contents($file_url);
file_put_contents($save_to,$content);
}?>用法:<?php
download_remote_file(‘http://www.54ux.com/wp-conte..
分类:
Web程序 时间:
2015-05-14 20:45:51
阅读次数:
179
文字水印文字水印就是在图片上加上文字,主要使用gd库的imagefttext方法,并且需要字体文件。效果图如下:$dst_path = 'dst.jpg';//创建图片的实例$dst = imagecreatefromstring(file_get_contents($dst_path));//打上...
分类:
Web程序 时间:
2015-05-14 06:10:23
阅读次数:
172
//默认模拟的header头 private function _defaultHeader() { $header = "User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.12) Gecko/...
分类:
其他好文 时间:
2015-05-11 12:48:35
阅读次数:
119
转自http://www.kuitao8.com/20140727/2867.shtml$data=file_get_contents("php://input"); php://input 是个可以访问请求的原始数据的只读流。 POST 请求的情况下,最好使用 php://input 来代替...
分类:
Web程序 时间:
2015-05-04 13:34:45
阅读次数:
161
文件读写是经常进行的一个动作,读取文件的函数真是千千万万个,复杂的有,简单的也有。最常用方便的有file_get_contents(),file_put_conents(),不需要进行打开文件,关闭文件的操作。
但是对超大文件进行读取时,file_get_contents()会把内容都读取进内存,造成内存溢出,最好是循环按行读取。fgetcsv()用来读取一行csv文件,fgets()用来读取一样...
分类:
Web程序 时间:
2015-05-03 09:19:16
阅读次数:
234
原文:http://blog.csdn.net/fdipzone/article/details/44475801原文看的更清晰,因为博客园的编辑器太烂了。转来备份。今天因工作需要,需要用 curl / file_get_contents 获取需要授权(Authorization)的页面内容,解决后...
分类:
Web程序 时间:
2015-05-03 01:57:07
阅读次数:
162
方法1: 用file_get_contents 以get方式获取内容 方法2:用file_get_contents函数,以post方式获取url 'bar'); $data = http_build_query($data); $opts = array ( 'http' => array ...
分类:
Web程序 时间:
2015-04-28 15:56:09
阅读次数:
190