pk-fr / yakpro-po

YAK Pro - Php Obfuscator
http://www.php-obfuscator.com
Other
1.29k stars 363 forks source link

yakpro breaks jquery #123

Closed ocgltd closed 1 month ago

ocgltd commented 1 month ago

I'm trying to run my php code through yakpro-po, and for some reason it breaks the code (won't display in browser(). Browser reports :

jquery is not defined $ is not defined and a few more...

I tried disabling EVERY option in the cnf file, and still the code is broken. If publish the php files WITHOUT running through yakpro, they work fine in the browser.

Am I missing something obvious? (I can 't be the first person to hit this issue)

pk-fr commented 1 month ago

jquery is javascript, not php !

refer to sections

obfuscate only standalone projects : no libraries and no plugins of another php framework... no php included in html but only pure php files... no indirect call, etc.

ocgltd commented 1 month ago

oh...:) I embed javascript in my php. Sounds like your tools won't work for me. I was use POBS before, which worked great, but after upgrading to PHP8 it completely broke.

Looks like I have to find another tool. Too bad the parser can't just re-insert the javascript as is....