[pmwiki-users] How to upload php scripts and download them as plain text?

Sebastian Siedentopf schlaefer at macnews.de
Fri Feb 10 05:19:34 CST 2006


I want to put php scripts for download on a wiki page. But I'm tired  
of renaming them to xxx.php.txt so I want the same behaviour as on  
pmwiki.org.

Using 2.1b24 I added

     $UploadExts['php'] = 'text/plain';

in my config.php. Upload is fine, but at download they are executed  
and not handled as txt files.

Sebastian






More information about the pmwiki-users mailing list