FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP file to say how long I've been online





m0u53m4t
I've seen these kind of things generated by XFIRE but I want a image that updates itself that can say how many hours I've been on the net this week. Any ideas?
LukeakaDanish
You need to write an aplication in something like c or java, which counts the amount of time your online, and uploads it to your server account.

Then you can use the php image canvas to display the data...
m0u53m4t
Ok. So say I made a file that contained this (named time.php):

2:12

How could I make it display as text over a background saying "2 Days and 12 Hours"?
Antoine_935
You won't get anything with this method. You have to learn PHP first
LukeakaDanish
You need to learn how to use the php image canvas. Look in the php manual - thats my suggestion - or read some tutorials.
aningbo
i seriously doubt if you could do something like that coz php will be so limiting.

got to program yourself and starts automatically when the windows starts. btw, it would be next to impossible to count the hours u spent on the net, i suppose. good luck.
LukeakaDanish
Just an idea...

If you use firefox, the esiest way to do it could be to write a plugin perhaps...
Related topics
[PHP doubt]Knowing the directory location of PHP file
Limiting php file functions with .htaccess
Cron jobs - running a php file
is there any way to trigger a .php file without refreshing?
Uploading a .php file! NEED HELP thanks
User Viewing A PHP File
send variable from php tp php file
Remote php file access and reading
including javascript in php file
Hide PHP file extension
[TuT]JOOMLA Installation Guide(Easiest Way)
How To : Improve Your PHP Programming
PHP Test File
PHP Toturail
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.