php filemtime (help!)
- Started
- Last post
- 10 Responses
- vsc
hi,
I need a footer with the last modification date.
Is there a way i change the variables "j F, Y" to have that stamped in portuguese?
thanks.
- UndoUndo0
what format is portugese??
- vsc0
"j" and "Y" work nicely but
"F" returns the Month in English...
- UndoUndo0
don't think there is any support for other lanugauges but cxould be wrong 'm' gives you the digit month. You could write a switch and chnage the month to the equiv portugese one?
a guy here's done it for german
- vsc0
"M" will do fine for now, thanks so much UndoUndo.
I'm just starting with php, so i'm afraid i don't know how to write a "switch". Your link is great btw. I'm into it now.
- vsc0
php is really very interesting.
and that link has a bunch of nice formats. cheers!
- unfittoprint0
what you should do is create an array of portuguese weekdays and months names.
retrieve the 'w' and 'n' index numbers for that particular day
and retrieve the corresponding array value.
- vsc0
olá unfit.
i think i know what you mean. in the link posted ^^ by UndoUndo there's something like that only for hebrew:
http://uk.php.net/manual/en/func…
. i'll start at that.
- ********0
Can't you just use preg_replace on your outputted date?
- vsc0
hey UndoUndo, you were right. switch/array is already done here:
http://uk.php.net/manual/en/func…
just change the german dd/mm names to make it work in any language. thanks all.