You are here: Re: Upload « PHP Programming Language « IT news, forums, messages
Re: Upload

Posted by Kimmo Laine on 02/16/06 14:38

"Shelly" <sheldonlg.news@asap-consult.com> wrote in message
news:cXZIf.17706$Ly6.5634@bignews5.bellsouth.net...
>
> "Zilla" <mail.is.not@an.option> wrote in message
> news:43f44a49$0$15787$14726298@news.sunsite.dk...
>>> move_uploaded_file($_FILES['userfile']['tmp_name'], "path/to/file.ext");
>>
>> Of course it should be:
>>
>> move_uploaded_file($_FILES['filename']['tmp_name'], "path/to/file.ext");
>>
>> Zilla
>
> The problems are that $_FILES['filename']['tmp_name'] comes up empty and
> if I fill it with the right value the it still can't upload because it
> says that the file isn't there,


Then you need to make sure the file does get uploaded! I'd recommend you put
this somewhere in the file and make sure you get 0 in it.
echo "file uploaded status: " . $_FILES['filename']['error'];

0 (zero) means ok, file uploaded with no errors. The other error codes are
explained here: http://fi2.php.net/manual/en/features.file-upload.errors.php


--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviφ
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация