Great! You have obviously gotten past that first step in learning programming.
It is always the hardest in my opinion. People just have difficulty getting to grips with how the hell the languages work - grammar and the syntax-ology!
If you know basic Java and C (more then me!!) then pickin up PHP enough to do what you describe above will take no more then a week TOPS.
The majority of us can type the proram up for you in 10 minutes but we would rather see you learn and do yourself 🙂
Much more rewarding!