Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: gallo_miguel on January 03, 2006, 02:31:50 AM

Title: upload files php in sme 6.0
Post by: gallo_miguel on January 03, 2006, 02:31:50 AM
Hi, I've been having troubles traying to upload images (jpg) to my sme 6 server with a php script. i just find a new file in /tmp that soppouse to be copied to my primary ibay.

any idea ?


thanks in advance.


mgallo
Title: upload files php in sme 6.0
Post by: Franco on January 03, 2006, 04:02:43 AM
http://no.longer.valid/phpwiki/index.php/TroubleshootingFAQ#php_basedir
Title: still doesnt work
Post by: gallo_miguel on January 03, 2006, 04:34:01 PM
I allready run this lines but the problem persist.
Title: Re: upload files php in sme 6.0
Post by: CharlieBrady on January 03, 2006, 04:39:51 PM
Quote from: "gallo_miguel"
Hi, I've been having troubles traying to upload images (jpg) to my sme 6 server with a php script. i just find a new file in /tmp that soppouse to be copied to my primary ibay.

any idea ?


I'm pretty sure you'll find that the problem is in your script. Be sure to check your log files for php script errors. A php scripting forum might be able to better help you.
Title: upload files php in sme 6.0
Post by: gallo_miguel on January 03, 2006, 05:12:29 PM
is a very simple script, this script works in sme server 5, I hope someone can help.

thanks.

mgallo

if ($nPantalla==1){
   
   if(strlen($userfile_name)>0){
      if (!copy($userfile, "imgNoticia/"$userfile_name)) {
        printf("Error al subir el archivo de libra...");      
               
      }else{
         $sFile = $userfile_name;
      }
   }
}
Title: upload files php in sme 6.0
Post by: albatroz on January 16, 2006, 12:12:07 PM
If you are working with a plain just installed SME 6 server you may try this
script
http://tech.tailoredweb.com/simple-upload-53.php

It worked for me partially as uploads worked fine but not deletion of files...

However it stopped working when I applied the PHP version 4.3.10 upgrade from
http://no.longer.valid/phpwiki/index.php/SME6.0.1Contribs