Skyzyx
01-16-2004, 07:37 PM
I'm moving along in my learning of PHP. This is the next step.
I'm looking for a script where I can pass my birthday, birthmonth, and birthyear as parameters and have it either return or echo my current age.
I'm sure this will have something to do with date() and/or mktime(), but after Googling for a bit, I haven't found anything that I can really work with.
I could write one in JavaScript, but I'm looking for a server-side solution. I know that in JavaScript, you need to account for leap years. I'm not sure if that would apply in PHP, but I figured I'd throw that out there to anyone who'd be willing to write me something.
Any help is appreciated! :thumbsup:
I'm looking for a script where I can pass my birthday, birthmonth, and birthyear as parameters and have it either return or echo my current age.
I'm sure this will have something to do with date() and/or mktime(), but after Googling for a bit, I haven't found anything that I can really work with.
I could write one in JavaScript, but I'm looking for a server-side solution. I know that in JavaScript, you need to account for leap years. I'm not sure if that would apply in PHP, but I figured I'd throw that out there to anyone who'd be willing to write me something.
Any help is appreciated! :thumbsup: