-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not play well with html template #1
Comments
Updated README.md with: Note: This tool has been written to obfuscate pure php sources. |
You can still embed html within php using the echo <<<END ... END; syntax! |
Ah.. Thanks for the tip 👍 |
Hello, EDIT: $c = preg_replace_callback('/\?>(.*)<\?php/sU', function ($match) {
return '; echo \''.str_replace(array('\\', "'", "\n"), array('\\\\', "\\'", '\'."\\n".\''), $match[1]).'\';';
}, '<?php ?>'.$c.'<?php ?>'); (Note that as an alternate version where you don't need to preserve line breaks within the generated html source code you could use a single space |
Particularlarly html template with inline php code inside
The text was updated successfully, but these errors were encountered: