Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

The time() function

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

The time() function

Postby tnrh1 » Wed Jun 12, 2013 6:55 am

Hello everyone.

Each time I upload a file to my server I would like to generate a different name, the time() function sounds perfect for me.
Something like:
Code: Select all
$filename = time().".".$extension;


But my question is, does the time() function can return the same value?

Thanks.
tnrh1
New php-forum User
New php-forum User
 
Posts: 4
Joined: Wed Jun 12, 2013 6:52 am

Re: The time() function

Postby johnmacd » Wed Jun 12, 2013 9:39 pm

Every time time() function return the different value.
johnmacd
New php-forum User
New php-forum User
 
Posts: 19
Joined: Wed Jun 12, 2013 9:30 pm


Return to PHP coding => General

Who is online

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

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.