The time() function

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

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.

johnmacd
New php-forum User
New php-forum User
Posts: 19
Joined: Wed Jun 12, 2013 9:30 pm
Contact:

Re: The time() function

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

Every time time() function return the different value.


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest