View Full Version : php in filemanager
CyberAlien
01-09-2004, 02:32 PM
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:
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?
ProWebUK
01-09-2004, 04:14 PM
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
CyberAlien
01-09-2004, 04:30 PM
Thanks.
I wonder how i missed that... i even posted several times to that thread...
DirectAdmin Support
01-10-2004, 01:21 PM
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
CyberAlien
01-10-2004, 01:51 PM
ok. no problem. i'll just use old ways in file manager.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.