Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: weblance on September 08, 2011, 10:21:23 PM

Title: Can't use php to upload files to server
Post by: weblance on September 08, 2011, 10:21:23 PM
Hi,

I just tried to make a php script to upload files from my website to the server, but it doesn't work. Is there some settings I have to set to make it work?

/Carl
Title: Re: Can't use php to upload files to server
Post by: Stefano on September 08, 2011, 11:17:24 PM
checking the logs for error and reportin here the message would help us to help you..

we don't know anything about your server, your appllication, your setup and the error
Title: Re: Can't use php to upload files to server
Post by: purvis on September 09, 2011, 08:09:36 PM
Is your ibay set to run php scripts.?
Do you have other php code running from the ibay?
Make sure your script is either php version 4.3.9 compatible or install the php 5 addon, http://wiki.contribs.org/PHP5

Are you testing small files first, there are file size upload limits set in the php.ini file.

See php configuration by creating a file with a php extension such as phpinfo.php and place the below text in it
Code: [Select]
<?php
phpinfo
();
?>


try simple measures first, as experienced as i am, i still have to do it.


Title: Re: Can't use php to upload files to server
Post by: CharlieBrady on September 10, 2011, 03:24:04 AM
I just tried to make a php script to upload files from my website to the server, but it doesn't work.

Please define "it doesn't work".

Please read this fine essay on the art of reporting problems effectively:

http://www.chiark.greenend.org.uk/~sgtatham/bugs.html