Koozali.org: home of the SME Server

Can't use php to upload files to server

Offline weblance

  • ****
  • 95
  • +0/-0
Can't use php to upload files to server
« 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

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: Can't use php to upload files to server
« Reply #1 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

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Can't use php to upload files to server
« Reply #2 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.



Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Can't use php to upload files to server
« Reply #3 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