0

I am using a free PHP Encoder for testing my encoded script.

My script (in the one PHP file) is something like this :

<?php

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
</body>
</html>

As you see my HTML (with JavaScript inside) are under the PHP code.

When I encoded that file with PHPEncoder it seems many problems appear in HTML and JavaScript, not PHP.

What is the best way for encoding this file?

4

2 回答 2

0

尝试一些有用的东西,比如

<?php
phpinfo();
?>

检查一切是否正常。

于 2011-02-09T15:21:22.997 回答
0

php 代码是使用“print”还是“echo”函数?

那会引起问题。作为网页信息一部分的任何内容都应该在<body>标签之间。

但是,<?php ?>在 .php 文件的主体中放置一个块是非常安全的。

于 2011-02-09T15:43:01.553 回答