]>
Commit | Line | Data |
---|---|---|
ba7d91c9 GJ |
1 | <?php |
2 | function save_file ($file, $name){ | |
3 | $rand_string = crc32(microtime(true).mt_rand(1000, 9000)); | |
4 | $path='/home/neku/www/files/'; | |
5 | $file_data=strip_tags($file); | |
6 | $file_name=$rand_string.'_'.$name; | |
7 | move_uploaded_file($file_data,$path.$file_name); | |
8 | echo 'http://a.uguu.se/'.$file_name; | |
9 | } | |
10 | ?> |