Forum    News    Downloads    Saved Games


Image Help

<<

Mailas

Post Sun Mar 21, 2010 9:02 pm

Use the functions is_uploaded_file() and copy().

$dir = '/uploads/';

if(is_uploaded_file($_FILES['$fieldname']['tmp_name']))
{
echo copy($_FILES['$fieldname']['tmp_name'], $dir . $_FILES['$fieldname']['name']);
echo " Good";
}
<<

.Yunoko

User avatar

Brew Guru
Brew Guru

Posts: 3142

Joined: March 05 2006

Location: Toronto, Ontario

Thanks given: 13 times

Thanks received: 3 times

Post Mon Mar 22, 2010 11:45 am

Thanks Mailas, I will try when I get some time tonight. You rock put are probably p!ssed at helping me so much :P
<<

Mailas

Post Mon Mar 22, 2010 3:34 pm

If you think this is stressing, just go on the IRC servers and see all the morons that post the most stupidest questions.
myy code no work
<!php

echo 'why it no work?';

!>
Previous

Return to General Chat

Who is online

Users browsing this forum: Google [Bot] and 179 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for blacklist.org.