PHP $strings sent to and recovered from a file, Time in PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
baboeska
Forum Newbie
Posts: 2
Joined: Tue Aug 18, 2009 9:15 pm
Location: Australia
Contact:

PHP $strings sent to and recovered from a file, Time in PHP?

Post by baboeska »

Hi there,

I've just started teaching myself PHP, and for a project I'm working on I kind of need knowledge of how to do quite a few things.
If people could help that would be awesome and I would be very grateful :)

i need knowledge about how to write $strings to a file, and recall them from a file, along with having a dynamic filename, knowledge on how the time system works in php so i can implement a timer based on user selections, and a way to ensure that only set users access a specific rear end but that anyone can access a nice front end.

What's important to me is how to write a few numeric strings to a file/database and retrieve them initially.
Also what's very important is time commands, seeing code that displays the current hour, minute and second, or just amount of seconds since midnight would be awesome, also seeing code that can start a numeric counter ticking over once a second until a set time limit is achieved (say 20 minutes, or 30 seconds, whatever is easier for demonstration purposes) would also be great.

Having well documented explanations for this, or s to learning resources where I can learn these things would also be most wonderful.

Thank you :)
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP $strings sent to and recovered from a file, Time in PHP?

Post by jackpf »

Well...that's a lot you've asked for...

When I started learning PHP, I read through the whole tutorial on tizag.com: http://www.tizag.com/phpT/

It'll take you no more than a couple of hours, and it includes most of the functions you've stated you require knowledge of.

Good luck!
baboeska
Forum Newbie
Posts: 2
Joined: Tue Aug 18, 2009 9:15 pm
Location: Australia
Contact:

Re: PHP $strings sent to and recovered from a file, Time in PHP?

Post by baboeska »

Thank you!
I've been reading http://devzone.zend.com/article/627 and I searched for php egg timer, so that helped me a little bit, definitely learning; thanks!
I will read those tuts you recommended.
Post Reply