Blog Ping Script Service RPC etc

I would like following script:

PING PAGE: mydomain.com/ping/
One page where user can ping their blog like: http://rpc.weblogs.com/RPC2

MAIN PAGE: mydomain.com
All blog pings will be stored in a flat text file that are automatically cleaned out
every 24-48 hours. All pinged blogs stored in the flat file will show on front page.

THE CONCEPT 2 PAGES MAIN NEWS PAGE + PING PAGE:
The main page will show all blog pings with title and domain in a 24-48 hour, much like a news site. The ping page will be much like a rgular RPC like http://rpc.weblogs.com/RPC2

I only want a clean script no design:

1 page for pinging + 1 main page showing all pings with text and url in a php index file that can be used on any domain.

Is this possible anyone?