Re: [請益] 有沒有法子把 $this pass 掉
基本上,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
討論串 (同標題文章)