Need a LAST MODIFED script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daveylapoo
    Confirmed User
    • Dec 2003
    • 423

    #1

    Need a LAST MODIFED script

    Hey, been surfing for hours now looking for script that functions like so:

    Displays the URL and PAGE TITLE for a set number of LAST MODIFIED .html files as they exist on the server.

    The idea being that a 'Whats new' area of a website displays the most recently uploaded files.

    There's no shortage of javascripts that display the last time a page was modified, but I couldn't seem to find anything that would also display the URL and PAGE TITLE as well.

    I'd be more than happy to pay a programmer for their time in creating this.

    Thanks in advance!
  • Iron Fist
    Too lazy to set a custom title
    • Dec 2006
    • 23400

    #2
    Well here's a start...

    PHP Code:
    <?php echo "Last modified: ".date( "F d Y H:i:s.", getlastmod() ); ?>
    i like waffles

    Comment

    • daveylapoo
      Confirmed User
      • Dec 2003
      • 423

      #3
      Originally posted by sharphead
      Well here's a start...

      PHP Code:
      <?php echo "Last modified: ".date( "F d Y H:i:s.", getlastmod() ); ?>
      Go on...

      ;)

      Comment

      • woj
        <&(©¿©)&>
        • Jul 2002
        • 47882

        #4
        sample is free, for full script need to pay up
        Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
        Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
        Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

        Comment

        • daveylapoo
          Confirmed User
          • Dec 2003
          • 423

          #5
          Originally posted by woj
          sample is free, for full script need to pay up
          Have you got some contact info?

          Comment

          • SBJ
            So Fucking Fabulous
            • Apr 2003
            • 11387

            #6
            Originally posted by woj
            sample is free, for full script need to pay up
            good stuff!

            Comment

            • Killswitch - BANNED FOR LIFE

              #7
              Originally posted by sharphead
              Well here's a start...

              PHP Code:
              <?php echo "Last modified: ".date( "F d Y H:i:s.", getlastmod() ); ?>
              That will only work for the page it's on, for what he wants, this is a better solution...

              PHP Code:
              <?php
              // outputs e.g.  somefile.txt was last modified: August 03 2009 01:43:23.
              
              $filename = 'somefile.txt';
              if (file_exists($filename)) {
                  echo "$filename was last modified: " . date ("F d Y H:i:s.", filemtime($filename));
              }
              ?>

              Comment

              • daveylapoo
                Confirmed User
                • Dec 2003
                • 423

                #8
                Originally posted by Killswitch
                That will only work for the page it's on, for what he wants, this is a better solution...

                PHP Code:
                <?php
                // outputs e.g.  somefile.txt was last modified: August 03 2009 01:43:23.
                
                $filename = 'somefile.txt';
                if (file_exists($filename)) {
                    echo "$filename was last modified: " . date ("F d Y H:i:s.", filemtime($filename));
                }
                ?>
                Thanks, that looks like it's close.

                However, what I need is a div section that will call the last 3 (or an assignable number) of .html pages that have been uploaded to a site, then display their URLS as a list using their page titles as anchor text.

                Here is a hack version of how the code 'might' look:

                <div class = "pages last updated">
                <h3>Recent Updates</h3>
                {foreach from=$pagelastuploaded key=title item=url}
                <li><a href="{$url}">{$title}</a><li>
                </div>

                Obviously that's not going to work, but hopefully gives a better idea of what I need done.

                Again, happy to pay a programmer to hash this out.

                Comment

                • GrouchyAdmin
                  Now choke yourself!
                  • Apr 2006
                  • 12085

                  #9
                  Why do I have a feeling that any gfy solution will arbitrate the whole local directory with opendir() for each call?

                  Comment

                  • calmlikeabomb
                    Confirmed User
                    • May 2004
                    • 1323

                    #10
                    ^ because most people on GFY don't know about PHP 5's built-in SPL and the RecursiveDirectoryIterator class.

                    I'll do it for $25.
                    subarus.

                    Comment

                    • Killswitch - BANNED FOR LIFE

                      #11
                      Originally posted by calmlikeabomb
                      ^ because most people on GFY don't know about PHP 5's built-in SPL and the RecursiveDirectoryIterator class.

                      I'll do it for $25.

                      Comment

                      • daveylapoo
                        Confirmed User
                        • Dec 2003
                        • 423

                        #12
                        Originally posted by calmlikeabomb
                        ^ because most people on GFY don't know about PHP 5's built-in SPL and the RecursiveDirectoryIterator class.

                        I'll do it for $25.
                        Sounds good, do you have ICQ? Your site seems to be down...

                        Comment

                        • calmlikeabomb
                          Confirmed User
                          • May 2004
                          • 1323

                          #13
                          Sorry I didn't check back with this thread yesterday. I'm only using the calmdev domain for email. The script is already written, if you're still interested send me an email to [email protected]

                          I'll send you a link and you can check it out. Then if you want it I can send you the source. I prefer epass over paypal, but I'm cool with either.

                          This script requires php5.

                          Thanks
                          subarus.

                          Comment

                          • Killswitch - BANNED FOR LIFE

                            #14
                            Awesome job Levi!

                            Comment

                            Working...