Reputation: 2329
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?
Upvotes: 0
Views: 136
Reputation: 4613
Is the php code using the "print" or "echo" functions?
That would cause problems. Any content which is part of the information on the web page should be between the <body>
tags.
It is however, quite safe to put a <?php ?>
block inside the body of a .php file.
Upvotes: 0
Reputation: 41080
try something useful like
<?php
phpinfo();
?>
to check whether everything works fine.
Upvotes: 0