NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page What is wrong with this.. It is driving me nuts.

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
2 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 08-23-2005, 02:37 PM THREAD STARTER               #1 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,267
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis

What is wrong with this.. It is driving me nuts.


Hello,

I am trying to upload a image to uploads directory

PHP
PHP Code:
    $att_path "/home/user/public_html/directory/uploads/";
    
$uniq substrmd5(uniqid (rand())), 010 );
    
$ext strtolowersubstr($_FILES['thumbnail']['name'], -3));
    
move_uploaded_file($_FILES['thumbnail']['tmp_name'], $att_path."/".$uniq.".".$ext);
    
$thumbnail $att_path."/".$uniq.".".$ext
????: NamePros.com http://www.namepros.com/programming/117987-what-is-wrong-driving-me-nuts.html
I removed my username and directory name due to security reasons.


HTML
Code:
<input name="thumbnail" type="file">
Maybe somebody else can find something wrong.

iNod
__________________
I feel old.
iNod is offline  
Old 08-23-2005, 03:03 PM   #2 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Make sure your <form> tag has this:

enctype="multipart/form-data"

in it.
mholt is offline  
Old 08-23-2005, 03:09 PM THREAD STARTER               #3 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,267
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Omg.. Thanks so much CompUXP.. I totally forgot about that

__________________
I feel old.
iNod is offline  
Old 08-23-2005, 03:35 PM   #4 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
No problem... -_-
mholt is offline  
Old 08-23-2005, 09:08 PM   #5 (permalink)
NamePros Regular
 
Zubair1's Avatar
Join Date: Mar 2005
Posts: 921
Zubair1 is a glorious beacon of lightZubair1 is a glorious beacon of lightZubair1 is a glorious beacon of lightZubair1 is a glorious beacon of lightZubair1 is a glorious beacon of light
 


AIDS/HIV
lol, once i readed in a book, that is little line is easy to remember
enctype="multipart/form-data", but some times you can easily forget about it too,
now i really think that the author sure was right, and i'll be just making a note of that.
__________________
Live Support : Zubair11 [at] hotmail.com
Free SEO Directory! || Free Online TV || Tech Blog
Web Design & Web Development Services || Reliable Web Hosting
Zubair1 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Whats wrong wid this unknowngiver Programming 11 08-23-2005 02:46 PM
That's mySQL - driving me nuts! Porte Programming 8 06-15-2005 12:48 PM
Meta-tags wrong? FastIcon.com Marketing Techniques 5 10-27-2004 11:43 AM

 
All times are GMT -7. The time now is 12:12 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger