What's Here?
- Members: 148,724
- Replies: 504,848
- Topics: 79,499
- Snippets: 2,661
- Tutorials: 705
- Total Online: 1,835
- Members: 82
- Guests: 1,753
|
A demonstration of using Bash or Cmd.exe (Windows Shell) and PHP to make a clock...straight from the command line, no files are used except for those already on your system.
|
Submitted By: snoj
|
|
Rating:

|
|
Views: 1,836 |
Language: PHP
|
|
Last Modified: June 4, 2006 |
|
Instructions: Just copy and post the code into your BASH or Cmd.exe shell. If you're on Windows, you'll need to be in PHP's directory unless you've done my tutorial "Makeing php behave" (http://forums.dreamincode.net/showtopic16184.htm). |
Snippet
(clear||CLS) && php -r "set_time_limit(0); echo \"PHP command line clock.\r\nWritten by Josh 'hotsnoj' Erickson for MS Windows XP.\r\nScript started: \".date('M d, Y H:i:s').\"\r\n\r\n\"; while(1) { usleep(100); echo \"\rCurrent time: \".date('M d, Y H:i:s'); }"
Copy & Paste
|
|
|
Be Social
Reference Sheets
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
|