Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: bajef on May 27, 2004, 06:25:09 AM
-
using php cannot upload image ... any one have solution for this?
-
You need to provide more details, but first check the size of the image. Default PHP max upload file size is 2Mb. Settings in the /etc/php.ini modify via templates.
-
the problem is i'm using php to create image from temp and as i know we can't access files outside from ibays. Any solution for this?
-
Try this:
Login as root or su:
#/sbin/e-smith/db accounts setprop IBAYNAME PHPBaseDir /
#/sbin/e-smith/signal-event ibay-modify IBAYNAME
Please note that there is a "/" in the end of the first command. It should work. Good Luck!
-
(Using 5.6U6)
I upgraded php to 4.3.6 and that caused a lot of problems for my ibays. I had to extend that basedir line to "/:/home/e-smith/ibays/ibay-name/:/tmp/:/usr/bin/:/usr/share/pear/"
I have no idea why this happened but it was a bit annoying. Pear is still causing a few problems but I can live without it for now. On the other hand, it is a more secure way of doing it as you have to more explicit in your definitions of allowable directories.