<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How to use Daily Counter PHP in HTML pages"]]></title>
		<link>https://proxy2.de/forum/posts/list/2.php</link>
		<description><![CDATA[Latest messages posted in the topic "How to use Daily Counter PHP in HTML pages"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How to use Daily Counter PHP in HTML pages</title>
				<description><![CDATA[ I have now modified the php script of the Daily Counter so that you can pull the php into your html pages without needing to convert to php.  The modified SSI (Perl) description is in another thread.<br /> <br /> 1) Create a page called  javascript.php <br /> 2) Copy/paste the following code into that page and then save it<br /> <br /> [code]<br /> &lt;?php<br /> include &#40;&quot;./config.inc.php&quot;&#41;;<br /> if &#40;$COUNT_CFG&#91;'use_db'&#93;&#41; &#123;<br />     include &#40;&quot;./mysql.class.php&quot;&#41;;<br /> &#125;<br /> include &#40;&quot;./counter.class.php&quot;&#41;;<br /> $counter = new dcounter&#40;&#41;;<br /> $visits = $counter-&gt;show_counter&#40;&#41;;  /* Returns an associative array */<br /> ?&gt;<br /> <br /> &lt;?php<br /> print &quot;&lt;!-- \n&quot;;<br />    print &quot;document.write&#40;\&quot;&lt;table border=0 cellspacing=1 cellpadding=2 align=center&gt;&lt;tr&gt;&lt;td&gt;\&quot;&#41;;\n&quot;;<br />    print &quot;document.write&#40;\&quot;&lt;font size=1&gt;\&quot;&#41;;\n&quot;;<br />    print &quot;document.write&#40;\&quot;&quot;;<br />    echo date&#40;&quot;D, j F Y&quot;&#41;;<br />    print &quot;\&quot;&#41;;\n&quot;;<br />    print &quot;document.write&#40;\&quot;&lt;br&gt;&lt;br&gt;Total Visits Today&#58; \&quot;&#41;;\n&quot;;<br />    print &quot;document.write&#40;\&quot; &quot;;<br />    echo $visits&#91;'total'&#93;;<br />    print &quot;\&quot;&#41;;\n&quot;;<br />    print &quot;document.write&#40;\&quot;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;\&quot;&#41;;\n&quot;;<br /> print &quot;// --&gt;\n&quot;;<br /> ?&gt;[/code]<br /> <br /> 3) upload the javascript.php to your server/website along with the rest of the php pages needed for the daily counter. (This works fine without using MySQL.)<br /> <br /> 4) Then, on your html pages that you want the counter on, use the following javascript to pull in the php counter and load them onto your website.<br /> <br /> [code]<br /> &lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;http&#58;//www.yourwebsite.com/javascript.php&quot;&gt;<br /> &lt;/script&gt;<br />   &lt;noscript&gt;<br />   &lt;img src=&quot;http&#58;//www.yourwebsite.com/javascript.php&quot; width=1 height=1 border=0&gt;<br />   &lt;/noscript&gt;<br /> [/code]<br /> <br /> I'm not around much to help with problems or questions.  Just thought I would post this for people who want to use the script without needing to change their web-pages over to php pages.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4121/13180.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4121/13180.php</link>
				<pubDate><![CDATA[Tue, 18 Jan 2005 23:19:10]]> GMT</pubDate>
				<author><![CDATA[ ET]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Thanks.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4121/13979.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4121/13979.php</link>
				<pubDate><![CDATA[Sat, 5 Feb 2005 03:52:14]]> GMT</pubDate>
				<author><![CDATA[ D.A.]]></author>
			</item>
	</channel>
</rss>