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?


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:

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: