NameSilo

Few simple code snippets needed

SpaceshipSpaceship
SpaceshipSpaceship
NamecheapNamecheap
Watch
Hey,

I know this is quite simple to do but i have lost the source code lol!

First of all I need a simple date and time feature.

Example: Monday 1st January - 3:00am

Second of all I need the counter code, users online and ip address code snippets .

Example:

Ip: 37.335.3737.37

Users Currently Online: 2

Total Visits: 999

Anyone have these?

J
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
IP:
PHP:
<?php

echo $_SERVER['REMOTE_ADDR'];

?>

Time, something like:
PHP:
<?php

echo date('l dS F - g:i:s A');
//Something like: Friday 20th January - 2:54:46 PM

?>

And the others, www.google.com/search?q=users online script a quick Google search you may find something.

Hope that helps.
 
0
Close
thanks SV!
 
0
Close
This is a free service to monitor currently online users on your site:
http://www.tag-board.com/counter

I found it searching for "online user counter", there are some more of course.
 
0
Close
if your going to use the date function it will be server time which is this:

PHP:
<?php

echo date('l dS F - g:i:s A');
//Something like: Friday 20th January - 2:54:46 PM

?>

or you can you use GMT time

PHP:
<?php

echo gmdate('l dS F - g:i:s A');
//Something like: Friday 20th January - 2:54:46 PM

?>
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Search: choose where to search from the All tab
Open the search at the top of any page. On the All tab, the list next to the search box lets you choose where to search: everything, all...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back