Home > Backend Development > PHP Tutorial > PHP image upload uses microseconds as file name, _PHP tutorial

PHP image upload uses microseconds as file name, _PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 10:20:28
Original
900 people have browsed it

PHP uses microseconds for image upload as file name,

$m = microtime ();
$mtime = explode(' ',$m);
$mtime1 = $mtime[1];
$mtime2 = substr($mtime[0], 2, 6);
$pic_time = "{$mtime1}{$mtime2}";

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/867002.htmlTechArticlephp uses microseconds for file names when uploading images, $m = microtime (); $mtime = explode(' ' ,$m); $mtime1 = $mtime[1]; $mtime2 = substr($mtime[0], 2, 6); $pic_time = "{$mtime1}{$mtime2}";...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template