作者HuangJC (吹笛牧童)
看板PHP
标题Re: [请益] 有没有法子把 $this pass 掉
时间Sun Jul 13 19:01:11 2008
基本上,demo.thtml 根本是很复杂,什麽都可以的东西
如下
demo.thtml
HTML DEMO PART<BR/>
<?php
$this->here();
?>
结果如上我还是成功了 :P
my_try.php
<?php
class Cheat
{
function here()
{
//cheat code
echo 'test ok<BR/>';
}
function Cheat()
{
require 'demo.thtml';
}
}
$run=new Cheat;//make it run
echo 'pass';
?>
接下来就要试更完整的了 :P
*.thtml 里还包含 java 语法
我不知道它能不能被执行到 ~^_^~
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.59.179.152