Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-02-2009, 09:21 PM   #1
daveylapoo
Confirmed User
 
Join Date: Dec 2003
Posts: 423
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!
daveylapoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2009, 09:23 PM   #2
Iron Fist
Too lazy to set a custom title
 
Join Date: Dec 2006
Posts: 23,400
Well here's a start...

PHP Code:
<?php echo "Last modified: ".date"F d Y H:i:s."getlastmod() ); ?>
__________________
i like waffles
Iron Fist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2009, 09:31 PM   #3
daveylapoo
Confirmed User
 
Join Date: Dec 2003
Posts: 423
Quote:
Originally Posted by sharphead View Post
Well here's a start...

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

;)
daveylapoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2009, 09:34 PM   #4
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2009, 11:37 PM   #5
daveylapoo
Confirmed User
 
Join Date: Dec 2003
Posts: 423
Quote:
Originally Posted by woj View Post
sample is free, for full script need to pay up
Have you got some contact info?
daveylapoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2009, 11:39 PM   #6
SBJ
So Fucking Fabulous
 
SBJ's Avatar
 
Industry Role:
Join Date: Apr 2003
Location: Indiana
Posts: 11,374
Quote:
Originally Posted by woj View Post
sample is free, for full script need to pay up
good stuff!
SBJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2009, 11:43 PM   #7
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by sharphead View Post
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));
}
?>
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2009, 08:31 AM   #8
daveylapoo
Confirmed User
 
Join Date: Dec 2003
Posts: 423
Quote:
Originally Posted by Killswitch View Post
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.
daveylapoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2009, 09:07 AM   #9
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Why do I have a feeling that any gfy solution will arbitrate the whole local directory with opendir() for each call?
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2009, 10:46 AM   #10
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
^ 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.
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2009, 11:30 AM   #11
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by calmlikeabomb View Post
^ 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.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2009, 01:08 PM   #12
daveylapoo
Confirmed User
 
Join Date: Dec 2003
Posts: 423
Quote:
Originally Posted by calmlikeabomb View Post
^ 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...
daveylapoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-04-2009, 03:01 PM   #13
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
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.
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-04-2009, 03:12 PM   #14
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Awesome job Levi!
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.