摘要: 该思路究竟可以干什么呢? 例如: 可以在开发CMS的时候自定义标签,将标签的内容PHP代码存放到数据库内,在生成页面的时候将存放到数据库内的php代码读出,然后用该思路执行并获取执行后的结果替换标签。 另外也可以将该思路延伸,用以作为网站在线程序编辑器来用,可以实现在线编辑可以编译执行的php;asp;jsp等任何文本文件。也可以作为在线数据库管理工具来用,只要填写对数据库操作的php代码即可操作... 阅读全文
posted @ 2009-08-11 20:51 已經停更 阅读(721) 评论(0) 推荐(0) 编辑
摘要: eval (PHP 3, PHP 4 ) eval -- Evaluate a string as PHP code Description mixed eval ( string code_str) eval() evaluates the string given in code_str as PHP code. Among other things, this can be usefu... 阅读全文
posted @ 2009-08-11 02:53 已經停更 阅读(629) 评论(0) 推荐(0) 编辑
摘要: How can I execute PHP code on my existing myfile.html page?: When a web page is accessed, the server checks the extension to know how to handle the page. Generally speaking if it sees a .htm or .... 阅读全文
posted @ 2009-08-11 01:13 已經停更 阅读(1050) 评论(0) 推荐(0) 编辑