Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Sonny on January 25, 2003, 06:29:20 PM
-
Hi there!
Is there anyone that knows how to make a web-upload form that works on the e-smith system...
I hav one i have moved to the e-smith server, it worked fine on the old server, but now it don't :-(
I have rememberd to change ALL the path's so it shoud be right....
---- part of script ---
if (is_uploaded_file($userfile)) {
umask(033);
copy($userfile, "/home/e-smith/files/ibays/golf_/html/upload/$filnavn");
}
?>
--- part of script ---
The onley thing that has changed since the moving of the script is the path in the copy(... line and it IS corect....
I have checked the php.ini file and the upload is set to "on" and the linit to "4M" so this seams to be alright...
Is there somting else i need to change somwhere in the e-smith to get this to work... ?
-
Have you enabled "Execution of dynamic content (CGI, PHP, SSI):" for the ibay ??
Regards
Ray Mitchell
-
hi!
Yes i have....
-
i have got it to work....
I found this FAQ
http://www.e-smith.org/faq.php3#6q12
And did as i said.. and now it works just fine!
-
Sonny,
Did you use the more restrictive '/home/e-smith/files/' ?
or ??
if we limit it to one IB, could that not prevent other IBs?
Note that the PHPBaseDir argument can be more restrictive than the example shown above. For example PHPBaseDir can also be '/home/e-smith/files/'.
I do not see why this says "more restrictive", it would seem to say you can access any directory after '/home/e-smith/files/'