[Solved]: Running PHP in a subfolder of coppermine [Solved]: Running PHP in a subfolder of coppermine
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Running PHP in a subfolder of coppermine

Started by Carlos5039, May 16, 2008, 01:25:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Carlos5039

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.

Joachim Müller

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.

Carlos5039

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.

Joachim Müller

Without extreme hacking of the coppermine core: no, you can't. There's nothing wrong with additional files in coppermine's root folder.

Carlos5039