I am working on a page in my personal website and I am having a few problems with a few things ... could somone please help with a few snippets of code that can do the following
I have a folder called generic ... and in that folder are files called 12am,1am,2am ETC ETC till 11am then they go 12pm,1pm,2pm etc etc till 11pm what I would like to do is set a variable say $hour to for example be $hour."am or pm depending on the $hour variable selected .txt" so that I can tell my php script to copy the files in that order from generic folder to the live folder ....
Also I am having some issues with a meta refresh timer based off of PHP could someone help solve this with me
I can get the time the song starts say 12:15am but then I need to have a php script read that and then the current time and subtract the 2 to get how long it has been playing then subtract that from the song length and make that the meta refresh time for the page ...