SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2005
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question php last updated

    hey i have a site http://munnaz.com/the-devils-battalion/ and i have it set up so there is one main page and the php links to the other so it comes up in the contents. i am very new at this and this is the first time i've done this. i was wondering how to put a link on the main page in the statistics box of when every page was updated when i click on the navigation link?? and also how to show a date of when i last updated any part of the site?
    so i would have

    site last updated:
    page last updated:

    as well.

    please help
    thank you very much
    munnnaz

  2. #2
    SitePoint Guru gavwvin's Avatar
    Join Date
    Nov 2004
    Location
    Cornwall, UK
    Posts
    686
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    look up the getlastmod() function, I think that should do what you need.

  3. #3
    orange pips! orange pips!
    Join Date
    Oct 2001
    Location
    Its all about location
    Posts
    652
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is also filemtime to get the last modification of other files than the one you are currently on.

  4. #4
    SitePoint Enthusiast
    Join Date
    Apr 2005
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks i'll try that

  5. #5
    SitePoint Enthusiast
    Join Date
    Apr 2005
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it won't work because i want the page updated to change when the page is changed using php ? or somthing like that here is the code for the page: the red is the parts which i think you need to look at and the purple thing is the spot where i want the date to be insterted!!

    thanks
    munnaz

    ------------------------------------------------------------
    index.php
    ------------------------------------------------------------
    <!--Created & Designed by Eli Burford-->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <link href="stylesheets.css" rel="stylesheet" type="text/css"/>
    <title>[ The Devils Battalion ]</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript">
    <!--
    function MM_displayStatusMsg(msgStr) { //v2.0
    status=msgStr;
    document.MM_returnValue = true;
    }
    //-->
    </script>
    </head>

    <body bgcolor="#222222" topmargin="0">
    <BODY onLoad="MM_displayStatusMsg('[ The Devils Battalion ] by munnaz.com');return document.MM_returnValue">

    <TABLE WIDTH=700 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD COLSPAN=7> <IMG SRC="images/image_01.jpg" ALT="" width="700" height="2"></TD>
    <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=2 ALT=""></TD>
    </TR>
    <TR>
    <TD ROWSPAN=9>
    <IMG SRC="images/image_02.jpg" ALT="" width="42" height="898"></TD>
    <TD COLSPAN=5> <a href="index.php">
    <IMG SRC="images/headings/randompic.php" WIDTH=616 HEIGHT=175 ALT="Home" border="0"></a></TD>
    <TD ROWSPAN=9>
    <IMG SRC="images/image_04.jpg" ALT="" width="42" height="898"></TD>
    <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=175 ALT=""></TD>
    </TR>
    <TR>
    <TD COLSPAN=5>
    <IMG SRC="images/image_05.jpg" ALT="" width="616" height="17"></TD>
    <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=17 ALT=""></TD>
    </TR>
    <TR>
    <TD ROWSPAN=7> <IMG SRC="images/image_06.jpg" ALT="" width="1" height="706"></TD>
    <TD background="images/image_07.jpg">
    <table width="148" height="220" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
    <td align="center" valign="top"><a href="index.php?page=home">Home</a></td>
    </tr>
    <tr>
    <td align="center" valign="top"><a href="index.php?page=episodes">Episodes</a></td>
    </tr>
    <tr>
    <td align="center" valign="top"><a href="index.php?page=videos">Videos</a></td>
    </tr>
    <tr>
    <td align="center" valign="top"><a href="index.php?page=pictures">Pictures</a></td>
    </tr>
    <tr>
    <td align="center" valign="top"><a href="index.php?page=stories">Stories</a></td>
    </tr>
    <tr>
    <td align="center" valign="top"><a href="index.php?page=other-stuff">Other Stuff</a></td>
    </tr>
    <tr>
    <td align="center" valign="top"><a href="index.php?page=forum">Forum</a></td>
    </tr>
    <tr>
    <td align="center" valign="top"><a href="index.php?page=equipment">Equipment</a></td>
    </tr>
    <tr>
    <td align="center" valign="top"><a href="index.php?page=the-crew">The Crew</a></td>
    </tr>
    <tr>
    <td align="center" valign="top"><a href="index.php?page=contact-us">Contact Us</a></td>
    </tr>
    <tr>
    <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
    <td align="center" valign="top">&nbsp;</td>
    </tr>
    </table>
    </TD>
    <TD ROWSPAN=7> <IMG SRC="images/image_08.jpg" ALT="" width="4" height="706"></TD>
    <TD ROWSPAN=5> <table width="462" height="696" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="left" valign="top" background="images/image_09.jpg">
    <?php
    switch( $_GET['page'] )
    {
    default:
    include 'include/home.php';
    break;

    case 'home' :
    include 'include/home.php';
    break;

    case 'contact-us' :
    include 'include/contact-us.php';
    break;

    case 'episodes' :
    include 'include/episodes.php';
    break;

    case 'equipment' :
    include 'include/equipment.php';
    break;

    case 'forum' :
    include 'include/forum.php';
    break;

    case 'other-stuff' :
    include 'include/other-stuff.php';
    break;

    case 'pictures' :
    include 'include/pictures.php';
    break;

    case 'stories' :
    include 'include/stories.php';
    break;

    case 'the-crew' :
    include 'include/the-crew.php';
    break;

    case 'videos' :
    include 'include/videos.php';
    break;

    case 'stats_lastupdated' :
    include 'include/statistics/last-updated.php';
    break;
    }
    ?></
    td>
    </tr>
    </table></TD>
    <TD ROWSPAN=7> <IMG SRC="images/image_10.jpg" ALT="" width="1" height="706"></TD>
    <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=220 ALT=""></TD>
    </TR>
    <TR>
    <TD> <IMG SRC="images/image_11.jpg" ALT="" width="148" height="18"></TD>
    <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=18 ALT=""></TD>
    </TR>
    <TR>
    <TD> <table width="148" height="220" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="left" valign="top" background="images/image_12.jpg"><p align="center">Nothing Yet!</p></td>
    </tr>
    </table></TD>
    <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=220 ALT=""></TD>
    </TR>
    <TR>
    <TD> <IMG SRC="images/image_13.jpg" ALT="" width="148" height="18"></TD>
    <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=18 ALT=""></TD>
    </TR>
    <TR>
    <TD ROWSPAN=2> <table width="148" height="227" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="left" valign="top" background="images/image_14.jpg"><p align="center"><b>TDB Was Created/b><br>
    April 21 2005</p>
    <p align="center"><b>Current Page Updated/b><br>date</p><p align="center"><a href="index.php?page=stats_lastupdated"><b>Pages
    Last Updated</a></b><br>
    </p></td>
    </tr>
    </table></TD>
    <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=220 ALT=""></TD>
    </TR>
    <TR>
    <TD ROWSPAN=2>
    <p>
    <IMG SRC="images/image_15.jpg" border="0" width="462" height="10"></p></TD>
    <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=7 ALT=""></TD>
    </TR>
    <TR>
    <TD> <IMG SRC="images/image_16.jpg" ALT="" width="148" height="3"></TD>
    <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=3 ALT=""></TD>
    </TR>
    </TABLE>
    </body>
    </html>

    <center><span style="width: 100%; font-family: helvetica; font-size: 6px;">
    &nbsp;</span></center>
    <p><br></p>
    ----------------------------------------


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
  •