<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1020594" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1020594</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/page-last-updated#comment-1126357</link>
    <description> &lt;p&gt;Thanks once again &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 01 Mar 2003 07:06:37 +0000</pubDate>
 <dc:creator>nuk3</dc:creator>
 <guid isPermaLink="false">comment 1126357 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/page-last-updated#comment-1126355</link>
    <description> &lt;p&gt;try $_SERVER[&#039;PHP_SELF&#039;]&lt;/p&gt;
 </description>
     <pubDate>Sat, 01 Mar 2003 06:40:31 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1126355 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/page-last-updated#comment-1126353</link>
    <description> &lt;p&gt;That worked but I want to modify it further..&lt;/p&gt;
&lt;p&gt;Is there any way to show the directory that the file resides in. For example:&lt;/p&gt;
&lt;p&gt;blah/home/public_html/&lt;strong&gt;help/faq.php&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Would it be possible to show that part in bold?&lt;/p&gt;
 </description>
     <pubDate>Sat, 01 Mar 2003 05:22:46 +0000</pubDate>
 <dc:creator>nuk3</dc:creator>
 <guid isPermaLink="false">comment 1126353 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/page-last-updated#comment-1126299</link>
    <description> &lt;p&gt;try:&lt;br /&gt;
$filename = basename($_SERVER[&#039;PHP_SELF&#039;]);&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Feb 2003 05:10:14 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1126299 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/page-last-updated#comment-1126294</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by mairving &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;I guess that it depends upon what kind of page. If it is a page that comes from a database, you could add a timestamp to the page that changes when the data is updated. Otherwise, you could use the &lt;a href=&quot;http://www.php.net/manual/en/function.filemtime.php&quot; class=&quot;bb-url&quot;&gt;filemtime&lt;/a&gt; function in php. &lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Still need some help; On php.net they have the following code:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// outputs e.g.&amp;nbsp; somefile.txt was last modified: December 29 2002 22:16:23.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filename &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;somefile.txt&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_exists&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filename&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filename&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; was last modified: \&quot; . date (\&quot;F d Y H:i:s.\&quot;, filemtime(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filename&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;));&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt; &lt;/p&gt;
&lt;p&gt;How could I find out the filename of the current file and store it in the variable $filename so I can include this script on all my pages and have the respective results shown?&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Feb 2003 04:12:52 +0000</pubDate>
 <dc:creator>nuk3</dc:creator>
 <guid isPermaLink="false">comment 1126294 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/page-last-updated#comment-1126292</link>
    <description> &lt;p&gt;Thanks for the help guys &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Feb 2003 03:53:48 +0000</pubDate>
 <dc:creator>nuk3</dc:creator>
 <guid isPermaLink="false">comment 1126292 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/page-last-updated#comment-1126249</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;//&amp;nbsp; Speed Check:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;function_exists&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;exec_speed_check&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;exec_speed_check&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$speed_check_sec&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$speed_check_msec&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;explode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot; \&quot;, microtime());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ((float)&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$speed_check_sec&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + (float)&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$speed_check_msec&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } #END exec_speed_check()&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$speed_check_start&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = exec_speed_check();&lt;br /&gt;////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// blah&lt;br /&gt;// blah&lt;br /&gt;// blah&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;// Speed Check:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$speed_check_finish&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = exec_speed_check();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$speed_check_runtime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$speed_check_finish&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$speed_check_start&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;echo \&quot;Runtime: \&quot; . number_format(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$speed_check_runtime&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, 6) . \&quot; seconds\n\&quot;;&lt;br /&gt;////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Feb 2003 17:41:05 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1126249 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/page-last-updated#comment-1126227</link>
    <description> &lt;p&gt;I guess that it depends upon what kind of page. If it is a page that comes from a database, you could add a timestamp to the page that changes when the data is updated. Otherwise, you could use the &lt;a href=&quot;http://www.php.net/manual/en/function.filemtime.php&quot; class=&quot;bb-url&quot;&gt;filemtime&lt;/a&gt; function in php.&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Feb 2003 13:22:38 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1126227 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
