Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-01-24 03:17:57

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 32K plugin yields 8MB plugin file

Any suggestions on how to detect this, and what variable to use instead?


Alex

Offline

#14 2006-01-25 19:49:16

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: 32K plugin yields 8MB plugin file

$GLOBALS[‘PHP_SELF’] works on my server, and you can do the same basename() trick to get the filename. Also you can just slightly modify zem_tpl.php to function compile_plugin($file='') and specify echo compile_plugin($filename); and specify $filename in the plugin.

Offline

Board footer

Powered by FluxBB