Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1870 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

image uploading, need help

Thread title: image uploading, need help
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
11-06-2011, 03:58 PM
#3
creativejen is offline creativejen
Status: Paladin
Join date: Jul 2006
Location: Sheffield, UK
Expertise: design, front-end markup
Software: Photoshop
 
Posts: 2,353
iTrader: 25 / 96%
 

creativejen is an unknown quantity at this point

Send a message via MSN to creativejen

  Old

I come up with a solution, just dont even check if it exists...

PHP Code:
$random_digit=rand(00000000,99999999);

move_uploaded_file($_FILES["file"]["tmp_name"],
"images/" $random_digit $_FILES["file"]["name"]);
$newthumb "images/" $random_digit $_FILES["file"]["name"]; 

Reply With Quote
     


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed