Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [php] problema con caricamento immagini
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[php] problema con caricamento immagini

PHP:

/*absolutepath è la cartella dove caricare il file (esempio ./img), $file è 
lavariabile proveniente dalla form e $filename il nome del file sul server*/

function caricaImmagine($absolute_path, $file, $nome_file){
            $dir = "dir";
            $file_name=$nome_file.".jpg";
            if ($file != "")
            {
                if (file_exists("$absolute_path/$file_name"))
                {
                    die("errore2: Un file con lo 
stesso nome è già online, RINOMINARLO e inviarlo nuovamente");
                }

                @copy($file, "$absolute_path/
$file_name") or die("errore4: Problemi sul server... riprova più tardi o scrivici 
una email");
                return 1;
            }
            else
            {
                //die("errore5: Non hai selezionanto 
nessun file!!!");
                return 0;
            }
}



in locale mi va ma sul mio spazio no.... come mai? mi da l'errore errore4: Problemi sul server... riprova più tardi o scrivici una email


ho un dominio con TOL e posso toccare i permessi solo via ftp, ho messu la cartella 777 tanto per prova, ma non va....

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

06-07-2006 16:24
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Come le carichi? Form o altro?

__________________
?

06-07-2006 20:48
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by yeah
Come le carichi? Form o altro?


tramite form, ma in locale sul mio pc funziona bene, su web invece no! la form carica alcuni dati, e l'immagine non la carica (solo quella) non capisco, come posso fare???

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

07-07-2006 09:34
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
deadMe
.:pollo smidollato:.

User info:
Registered: Dec 2003
Posts: 312 (0.04 al dì)
Location: Pleasentville
Corso: informatica per le telecomunicazioni
Anno: manca poco, manca poco
Time Online: 2 Days, 9:31:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

dovresti contattare il dominio e farti dare spiegazioni sul codice di errore. problemi sul server mi sembra un pò generico..

__________________
"D.U.M.B. everyone's accusing me" - Pinhead

07-07-2006 10:16
Click Here to See the Profile for deadMe Click here to Send deadMe a Private Message Find more posts by deadMe Add deadMe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusa, avevo letto errore404, non errore4

Cmq usi da qualche parte move_uploaded_file()?

__________________
?

07-07-2006 19:29
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 04:32.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.082 seconds (53.05% PHP - 46.95% MySQL) con 25 query.