Log in

View Full Version : ASP code for daily changing content



pankajt
12-21-2008, 04:42 PM
Hi Friends,

Can you tell me a script which shows different content daily. I mean one file which contains all the contents say for one month.

Now from day 1st to 31st of the month. The file shows different content as per the date.

Anybody having such script or can make it?

TIA
pankaj

Nile
12-21-2008, 06:37 PM
I can make you a PHP one if you like...

pankajt
12-22-2008, 09:20 AM
Thanx Nile send it to me or post here.

Also plz find ASP also.

ciao
pankaj

benslayton
12-24-2008, 06:37 PM
I can make one for you.. I know enough asp to get the job done...

Explain a little more please...

What kind of fields are you wanting to store in the txt file?
You want title and article? Title, article, date, author... ????

Nile
12-28-2008, 04:14 AM
Thanx Nile send it to me or post here.

Also plz find ASP also.

ciao
pankaj

I can only do PHP, as said above.

diltony
01-01-2009, 07:41 PM
I can convert it from php to asp if Nile decided to write it in PHP - asp not asp.net [my asp.net is quite rusty]

pankajt
01-02-2009, 06:53 AM
hey please make it soon then....

Anybody can make it or have it please sendit

TIA
pankaj

pankajt
01-02-2009, 06:55 AM
I can convert it from php to asp if Nile decided to write it in PHP - asp not asp.net [my asp.net is quite rusty]

OK diltony please make it and post it here ...Thanx in Advance

Nile
01-02-2009, 07:02 AM
I'm currently making the script(just started), just wait it should we done in a bit. Diltony will then convert it to ASP - as he said.

Here we go:
Date.txt:


20090101 It's new years!
20090102 It's the second of january!!
20090103 Today is a very good day.. I don't know why though.
20090104 Yup.. It's the forth..

return_date.php:


<?php
$file = fopen('date.txt','rb');
while($line = fgetcsv($file, null, "\t")){
if($line[0] == date("Ymd")) echo $line[1];
}
?>