php in filemanager

CyberAlien

Verified User
Joined
Oct 28, 2003
Messages
229
Location
Mars
Hello,

I'm using php in all skin files without problems, but when i try to use it in filemanager files i get this error:
Code:
cannot find file: /usr/local/bin/php

Path to php is correct - i set it as token and it works perfectly in all other files except for filemanager.

And solutions to problem?
 
Known Problem:

http://www.directadmin.com/forum/showthread.php?s=&threadid=1541

for the file not found issue, we've figured it out, and it's because the php code was in the filemanager skins, which is chrooted to /home/username. So there is no way to accsess /usr/local/lib/php from there (unless you create /home/username/usr/local/lib/php) ... so scripting might not work in the filemanager.. but any suggestions/ideas are welcome on how to get around this.

Chris
 
Thanks.

I wonder how i missed that... i even posted several times to that thread...
 
I'm still not sure I'm we're going to get around that. The skins php would have to be processed *before* some of the tokens are generated (chroot happens when the filemanager gets the table) .. which would mean that some of the tokens wouldn't be available to play with in your php code.

John
 
Back
Top