<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1025656" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1025656</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/should-i-use-php-or-javscript#comment-1155889</link>
    <description> &lt;p&gt;Ok. I have to study up on that and I know I have cron jobs on a great server.&lt;br /&gt;
Also, I know PHP has some time features like time(). I&#039;ve seen some time scripts run with PHP. I don&#039;t think I would need cookies with that.&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Jul 2004 19:16:09 +0000</pubDate>
 <dc:creator>Bolobotz</dc:creator>
 <guid isPermaLink="false">comment 1155889 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/should-i-use-php-or-javscript#comment-1155875</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Bolobotz wrote:&lt;/strong&gt; Actually I don&#039;t care about refresh I just want it to run the script every 24 hours. Yes, I guess that does sound strange to run it on every refresh since that would reset it.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Does anyone use cron jobs here? i think since you are running the script just use a cron job and it won&#039;t matter if you use PHP or Javascript.  Set the page on the cron job to run every 24 hours and you&#039;re done&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt; my two cents...&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Jul 2004 02:05:33 +0000</pubDate>
 <dc:creator>WebsiteDistrict</dc:creator>
 <guid isPermaLink="false">comment 1155875 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/should-i-use-php-or-javscript#comment-1155779</link>
    <description> &lt;p&gt;Right. Use PHP and a cookie/session. I&#039;m afraid I know not the specifics for this, only the general idea. You store the time of last load in the cookie, and at every page load check to see if the user has the cookie, and if so, evaluate the saved time. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 28 Jul 2004 04:09:42 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1155779 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/should-i-use-php-or-javscript#comment-1155754</link>
    <description> &lt;p&gt;Actually I don&#039;t care about refresh I just want it to run the script every 24 hours. Yes, I guess that does sound strange to run it on every refresh since that would reset it.&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Jul 2004 12:21:49 +0000</pubDate>
 <dc:creator>Bolobotz</dc:creator>
 <guid isPermaLink="false">comment 1155754 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/should-i-use-php-or-javscript#comment-1155753</link>
    <description> &lt;p&gt;Also, I am very new at PHP and JavaScripot but have experience with other languages.&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Jul 2004 11:49:18 +0000</pubDate>
 <dc:creator>Bolobotz</dc:creator>
 <guid isPermaLink="false">comment 1155753 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/should-i-use-php-or-javscript#comment-1155752</link>
    <description> &lt;p&gt;24 hours since page load. It seems like it runs the block template on every page load. It&#039;s a random quote block and I want to have the quote change every 24 hours.&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Jul 2004 11:34:59 +0000</pubDate>
 <dc:creator>Bolobotz</dc:creator>
 <guid isPermaLink="false">comment 1155752 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/should-i-use-php-or-javscript#comment-1155747</link>
    <description> &lt;p&gt;That sounds like a very strange thing to do.&lt;/p&gt;
&lt;p&gt;24 hours since what? Page load? Page unload? Hit request? Some other arbitary time?&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Jul 2004 03:57:07 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1155747 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/should-i-use-php-or-javscript#comment-1155738</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Abhishek Reddy wrote:&lt;/strong&gt; I&#039;m afraid I don&#039;t understand what you&#039;re trying to do. It&#039;s usually very easy to pick between JS and PHP because they&#039;re so... different.&lt;/p&gt;
&lt;p&gt;It looks like you&#039;re using a template system of some kind. If you want code to be parsed -- the if conditional -- on the server side along with the template, you cannot use client-side JS.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Ok, is there a way to use the  statement around this and put in a timed conditional statement like: if 24 hours have passed run the html? &lt;/p&gt;
&lt;p&gt;If this is not possible with PHP how would I do it in JavaScript?&lt;/p&gt;
&lt;p&gt;I&#039;m using the Xoops CMS in a block template.&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Jul 2004 20:47:51 +0000</pubDate>
 <dc:creator>Bolobotz</dc:creator>
 <guid isPermaLink="false">comment 1155738 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/should-i-use-php-or-javscript#comment-1155736</link>
    <description> &lt;p&gt;I&#039;m afraid I don&#039;t understand what you&#039;re trying to do. It&#039;s usually very easy to pick between JS and PHP because they&#039;re so... different.&lt;/p&gt;
&lt;p&gt;It looks like you&#039;re using a template system of some kind. If you want code to be parsed -- the if conditional -- on the server side along with the template, you cannot use client-side JS.&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Jul 2004 20:34:28 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1155736 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/should-i-use-php-or-javscript#comment-1155734</link>
    <description> &lt;p&gt;I have read that it would be hard to do timing stuff all in PHP sio I want to do it in JavaScript. Would DHTML work better to keep it all in the same file within the block template? How would I do that?&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Jul 2004 16:16:00 +0000</pubDate>
 <dc:creator>Bolobotz</dc:creator>
 <guid isPermaLink="false">comment 1155734 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
