php quicky

Soldato
Joined
6 Feb 2004
Posts
20,856
Location
England
i don't program and i don't know php at all. i've tried searching/googling but those php docs are mumbo jumbo to me.... :o

i just need a quick bit of help making my own now playing sig. i'm getting a date value from a file and at the moment it's formatted like this.....

16 Feb 2007, 13:26

but i'd like to switch it round so it looks like this....

13:26, 16 Feb 2007

bet this is too easy for you guys. :D

thanks.... :)
 
Code:
$timestamp = file_get_contents("foo/bar.txt");
list($date, $time) = explode(", ", $timestamp);
$new_timestamp = $time . ", " . $date;
:)
 
ok another niggle now. when i have an ö in the text, it gets displayed rather oddly....

localhostji1.png


it's supposed to say röyksopp. is there anything i can do to fix this? :)

sorry to be a pain.... :o
 
Back
Top Bottom