forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Carlos5039 on May 16, 2008, 01:25:35 am

Title: [Solved]: Running PHP in a subfolder of coppermine
Post by: Carlos5039 on May 16, 2008, 01:25:35 am
How can I add a directory that will let me run PHP in the coppermine root and let coppermine control the access?  I have been searching the forums with no luck.

Basically I am trying to run a php program that will give me a much broader control over FLV files, and have links to these php files from any album or category using Minicms.
Title: Re: Running PHP in a subfolder of coppermine
Post by: Joachim Müller on May 16, 2008, 06:47:55 am
Not sure what you mean, but I guess you want to create a custom page with the coppermine controls on it. Just create your PHP file as suggested in http://forum.coppermine-gallery.net/index.php/topic,38979.msg184636.html#msg184636 and several similar threads. Add the logic you need (some if/then checking that determines wether the page will display something or not) and you should be fine. That file needs to reside in coppermine's root folder, you can't put it into a sub-folder easily because of the relative paths of the files that get included.
Title: Re: Running PHP in a subfolder of coppermine
Post by: Carlos5039 on May 16, 2008, 01:08:57 pm
Is their a way I can add the subdirecty to the relative paths?  I am trying not to fill the coppermine root directory with these additional files, currently I am doing that.  I just want to seperate my php files from coppermine.  I want to Keep the installation root clean.  Thanks for your response.
Title: Re: Running PHP in a subfolder of coppermine
Post by: Joachim Müller on May 16, 2008, 04:44:18 pm
Without extreme hacking of the coppermine core: no, you can't. There's nothing wrong with additional files in coppermine's root folder.
Title: Re: Running PHP in a subfolder of coppermine
Post by: Carlos5039 on May 16, 2008, 07:24:28 pm
Thanks for the information.