PHP Scripts in ASSETS

I’m using an extension that uses a PHP script to compress it’s files.

But because of CAssetManager’s default permission of 777 to the extension’s files, the PHP scripts can not be executed on my web server.

Eveytime I have to manually change the permission of the assets folder to 755 in order for the extension to work.

Is there any work around to this issue?

Thanks.

PHP files shouldn’t end at assets folder since it is exposed to the world. The correct way of compressing files is extending CClientScript like it was done in the following:

http://www.yiiframework.com/extension/optimized-client-script

http://www.yiiframework.com/extension/nlsclientscript

http://www.yiiframework.com/extension/eclientscript

http://www.yiiframework.com/extension/cclientscriptminify

Well, the extension is TinyMCE, and for the gzip compression it uses a PHP script.

How can I get it working?

For just gzip it’s better to configure your webserver like it’s done here for Apache: http://crazytoon.com/2008/05/29/apache-gzip-compression-how-do-i-speed-up-my-website-download-time/