Results 1 to 9 of 9

Thread: ASP code for daily changing content

  1. #1
    Join Date
    Jun 2008
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ASP code for daily changing content

    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

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I can make you a PHP one if you like...
    Jeremy | jfein.net

  3. #3
    Join Date
    Jun 2008
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanx Nile send it to me or post here.

    Also plz find ASP also.

    ciao
    pankaj

  4. #4
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    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... ????

  5. #5
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by pankajt View Post
    Thanx Nile send it to me or post here.

    Also plz find ASP also.

    ciao
    pankaj
    I can only do PHP, as said above.
    Jeremy | jfein.net

  6. #6
    Join Date
    Dec 2008
    Location
    Nigeria
    Posts
    95
    Thanks
    3
    Thanked 8 Times in 8 Posts

    Default

    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]

  7. #7
    Join Date
    Jun 2008
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hey please make it soon then....

    Anybody can make it or have it please sendit

    TIA
    pankaj

  8. #8
    Join Date
    Jun 2008
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by diltony View Post
    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

  9. #9
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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.
    Edit:
    Here we go:
    Date.txt:
    Code:
    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 Code:
    <?php
    $file 
    fopen('date.txt','rb');
    while(
    $line fgetcsv($filenull"\t")){
      if(
    $line[0] == date("Ymd")) echo $line[1];
    }
    ?>
    Last edited by Nile; 01-02-2009 at 07:24 AM.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •