On Saturday 30 November 2002 06:42, magnus nilsson wrote:
> It works, partially. I can upload the file, but it's named "array".
print_r($_FILES)
to see what it contains and how you can use it.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
*
It works, partially. I can upload the file, but it's named "array".
On fredag, nov 29, 2002, at 16:28 Europe/Stockholm, Beth Gore wrote:
Hi Magnus,
Your problem was you weren't using the correct part of the $_FILES
array when using copy();
Cut and Past This:
if ($ok){
$res = copy($bilde
Hi Magnus,
Your problem was you weren't using the correct part of the $_FILES array
when using copy();
Cut and Past This:
if ($ok){
$res = copy($bilde_fil[tmp_name], $path."/".$nyttnavn.$ending);
print ($res)?"Ferdig, uploadet
".$nyttnavn.$ending."!":"Sorry, Kunne ikke uploade.";
print
> function upload ()
> {
>if ( is_uploaded_file ($_FILES['userfile']['name'] ) )
>{
> copy($_FILES['userfile']['name'], "/demos/");
>}
>
>else
>{
> echo "File not uploaded: " . $_FILES['userfile']['name'];
>}
> }
is_uploaded_file($_FILES['userfile']))
Read th
On Thursday 23 May 2002 17:43, Ragnar wrote:
> Hi and thanx for previous help!!!
>
> Still a newbie ;)
>
> I have tried to make the example from php manual working and have the
> following code:
[snip]
> This always ends up displaying "File not uploadet" + Filename. The file
> doesnt seem to upl
5 matches
Mail list logo