Location: PHPKode > scripts > CcCounter > cccounter/cccounter/INSTALLATION_GUIDE.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en"><head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	
	<title>CcCounter 2.0 Installation Guide</title><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>
<br>
<table width="99%" border="0" cellpadding="0" cellspacing="0"><tr>
	<td align="left"><a href="http://www.cicoandcico.com/products.php?option=cccounter"><img border="0" width="208" height="69" src="images/cccounter.gif" alt="CcCounter homepage"></a></td>
	</tr></table>
<!--separator--> 
	<table class="separator"><tr><td></td></tr></table>
<center>
<!--UP-BAR-->
	<table class="index" cellpadding="0" cellspacing="0">
	<tr align="center">
	<!--INDEX-->
		<td align="left" class="header"></td>
		<td class="spacer"></td>
		<td class="tab"></td>

		<td valign="middle" width="50"><a href="http://www.cicoandcico.com/products.php?option=cccounter" class="main">Homepage</a></td>
		<td class="tab"></td>
		<td valign="middle" width="120"><a href="http://www.cicoandcico.com/download/download.php?SortBy=1&fdir=./cccounter/" class="main">Download page</a></td>
		<td class="tab"></td>
		<td valign="middle" width="80"><a href="http://www.cicoandcico.com/cccounter" class="main">Demo page</a></td>
		<td class="tab"></td>
		<td valign="middle" width="30"><a href="http://www.cicoandcico.com/guestbook/sign.php" class="main">Support</a></td>
				<td class="tab"></td>
<!--FLAGS AND FOOTER-flags differs from italian to english version-->
	<td>   </td>
		<td align="right" class="footer"></td>
</tr>
</table>
<!--MAIN TABLE-->
	<table class="main_table" cellpadding="0" cellspacing="0">
	<tr valign="top">
		<td align="center" width="19%" valign="top">
			<table class="max_table" cellpadding="0" cellspacing="0">
			<tr>
			<td height="5%" align="center" width="100%" valign="top">
					<!--*********MENU*********-->
					<table class="menu_button" cellpadding="0" cellspacing="0"><tr>
					<td align="left" height="31" width="32"><img src="images/head.png" border="0" alt=""></td>
					<td height="31" width="100%" align="center" valign="middle">
					<a class="menu_title">Menu</a></td>
					<td height="31" align="right" width="29"><img src="images/foot.png" border="0" alt=""></td>
					<td height="31" width="5"><img src="images/shadow1.gif" border="0" alt=""></td>
					</tr>
					<tr><td colspan="3">
							<table class="menu_content_table" cellspacing="0" cellpadding="1"><tr><td width="100%" valign="top">
							<table class="menu_content_table_bg" cellspacing="0" cellpadding="0"><tr><td valign="top">
							<div class="menu">
							<!--Menu body-->
							<b>CcCounter 2.0</b><ul>
<li><a href="http://www.cicoandcico.com/products.php?option=cccounter" class="link">Visit CcCounter Homepage</a></li>
<li><a href="http://www.cicoandcico.com/cccounter" class="link">View Demo page</a></li>
<li><a href="http://www.cicoandcico.com/download/download.php?SortBy=1&fdir=./cccounter/" class="link">Download CcCounter</a></li>
<li><a href="http://www.google.com/" class="link">Search the web</a></li>
</ul>
<b>Support</b>
<ul><li><a href="http://www.cicoandcico.com/guestbook/sign.php" class="link">Sign CcCounter guestbook</a></li></ul>
<b>Donations</b><br>
CcCounter if free, but if you want to help developing you can contact me for a donation <a href="mailto:cicoandcico[at]cicoandcico.com" class="link">here</a>.<br><br><!--/Menu body-->
							</div>
							</td></tr></table>
							</td></tr></table>
					</td><td class="menu_lshadow">
					</td></tr>
					<tr><td colspan="4" height="5">
						<table class="menu_shadow" cellpadding="0" cellspacing="0"><tr>
						<td align="left" width="14"><img border="0" src="images/shadow2.gif" alt=""></td>
						<td width="100%"></td>
						<td align="right" width="15"><img border="0" src="images/shadow4.gif" alt=""></td>
						</tr></table>
					</td></tr></table>
					<!--*********/MENU*********-->
			</td></tr>
			<tr>
			<td height="5%" align="center" width="100%" valign="top">
					<!--*********MENU*********-->
					<table class="menu_button" cellpadding="0" cellspacing="0"><tr>
					<td align="left" height="31" width="32"><img src="images/head.png" border="0" alt=""></td>
					<td height="31" width="100%" align="center" valign="middle">
					<a class="menu_title">License</a></td>
					<td align="right" width="29" height="31"><img border="0" src="images/foot.png" alt=""></td>
					<td height="31" width="5"><img src="images/shadow1.gif" border="0" alt=""></td>
					</tr>
					<tr><td colspan="3">
							<table class="menu_content_table" cellspacing="0" cellpadding="1"><tr><td width="100%" valign="top">
							<table class="menu_content_table_bg" cellspacing="0" cellpadding="0"><tr><td valign="top">
							<div class="menu">
							<!--Menu body-->CcCounter is under <a href="http://www.gnu.org/licenses/gpl.txt" class="link">GPL</a> license. Sources can be freely distributed, and usage is totally free.
							<br><br><!--/Menu body-->
							</div>
							</td></tr></table>
							</td></tr></table>
					</td><td class="menu_lshadow">
					</td></tr>
					<tr><td colspan="4" height="5">
						<table class="menu_shadow" cellpadding="0" cellspacing="0"><tr>
						<td align="left" width="14"><img border="0" src="images/shadow2.gif" alt=""></td>
						<td width="100%"></td>
						<td align="right" width="15"><img border="0" src="images/shadow4.gif" alt=""></td>
						</tr></table>
					</td></tr></table>
					<!--*********/MENU*********-->
			</td></tr>
			<tr>
			<td height="85%" align="center" width="100%" valign="top">
					<!--*********MENU*********-->
					<table class="menu_button" cellpadding="0" cellspacing="0"><tr>
					<td align="left" height="31" width="32"><img src="images/head.png" border="0" alt=""></td>
					<td height="31" width="100%" align="center" valign="middle">
					<a class="menu_title">Credits</a></td>
					<td align="right" width="29" height="31"><img border="0" src="images/foot.png" alt=""></td>
					<td height="31" width="5"><img src="images/shadow1.gif" border="0" alt=""></td>
					</tr>
					<tr><td colspan="3">
							<table class="menu_content_table" cellspacing="0" cellpadding="1"><tr><td width="100%" valign="top">
							<table class="menu_content_table_bg" cellspacing="0" cellpadding="0"><tr><td valign="top">
							<div class="menu">
							<!--Menu body-->
							<b>CcCounter 2.0b</b><br><br>
							<b>Lead Programmer:</b><ul><li>Emanuele Guadagnoli</li></ul>
							<b>Feedback:</b><ul><li>The HWUpgrade Forum</li></ul>
							<b>Beta testing:</b><ul><li>Cicoandcico.com site users</li></ul>
							<br>If you want to help developing, please let me know. Programmers and beta testers would be really useful! <br><br><!--/Menu body-->
							</div>
							</td></tr></table>
							</td></tr></table>
					</td><td class="menu_lshadow">
					</td></tr>
					<tr><td colspan="4" height="5">
						<table class="menu_shadow" cellpadding="0" cellspacing="0"><tr>
						<td align="left" width="14"><img border="0" src="images/shadow2.gif" alt=""></td>
						<td width="100%"></td>
						<td align="right" width="15"><img border="0" src="images/shadow4.gif" alt=""></td>
						</tr></table>
					</td></tr></table>
					<!--*********/MENU*********-->
			</td></tr></table>
		</td>
		<td> </td>
		<td valign="top">
<table border="0" cellpadding="6" cellspacing="1" class="max_table"><tr><td valign="top">
<!--******************BODY******************-->
<div class="standard">
<b>Installation guide for NEWBIES</b><br>
This guide is intended for those who doesn't know anything about php. If you are a little experienced, I don't think it will be useful for you.<br>
I am using Linux (KDE), but it's not different from Windows for our work. I will proceed step by step:
<ul><ol type="1">
<li>First of all, You have to know that <b>CcCounter (like any other php script) can't work without a server!</b> So, if you want it to count a page relying in <b>your own PC</b>, you have to install a web server (like Apache)and php.<br> 
Otherwise, if you have a site in hosting and you simply want to count the pages of your site, you don't have to worry about that.<br><br></li>
<li>Make sure that pages you want to be counted <b>have .php extension! You can't count pages with .htm/.html extension</b>, because php is not processed. You don't have to worry about page contents: nothing will change. To view a page with .php extension, you can 1)drag it in you preferred browser, or 2)install a web server, put that page in the right directory (normally www/), and view it at <code>http://localhost/page_name.php</code>, that is a lot better.<br>If you have a site in hosting, you have only to change pages extension (and update hyperlinks). Everything will work like before.<br><br></li>
<li>If the previous steps are correct, <b>extract the file you have downloaded</b> to a folder. As you can see, there is a directory named <code>cccounter</code>. You have to upload it to your web server. If you have a site in hosting, <b>open your preferred ftp manager and drag the folder</b> into the main folder of your site, that is the same directory of your <code>index.php</code> file.<br><br></li>
<li>Add the following line to any page you want to be counted:<br><br>
<code>
<b>&lt?php include "cccounter/counter.php";?&gt</B></code><br><br>This line will be replaced by the following one:<br><br><code>This page has been visited <b>&lt NUMBER OF VISITORS &gt</b> times. <a href="" class="link">View usage statistics</a>.</code>
<br><br>I assumed cccounter folder is in the same directory of the pages you want to count. If not, edit the previous line with the right include path. <br>To modify the output line, edit config.php.<br><br></li>
<li>Open some page with your browser. If you click on <code><a href="" class="link">View usage statistics</a></code>, or you open <code>cccounter/index.php</code>, you will be able to see the statistics generated for your site!<br><br></li>
<li><b>If you contry is not listed between the recognised countries</b>, you can add it to the list. Just look in the package you have downloaded: there is a directory named <code>country_adder</code>, and inside there is a file named <code>add_country.php</code>. You have to upload it into the <code>cccounter</code> directory in your site (the directory you've uploaded before). <br>After that, open that file (<code>http://www.your-site.com/cccounter/add_country.php</code>)with your preferred browser, and follow the instructions. <br>Once you've done, <b>delete that file for security</b>.<br><br></li></ol></ul>
If you have problems, you can ask me by signing <a href="http://www.cicoandcico.com/guestbook/sign.php" class="link">CcCounter guestbook</a>.

</div><br>
<!--******************/BODY******************-->
	</td></tr></table>
	</td></tr></table>
	</td></tr><tr><td height="5"></td></tr></table>
	<table class="bottom_bar" cellpadding="0" cellspacing="0"><tr>
	<td align="left" width="13"><img border="0" src="images/head_002.png" alt=""></td>
	<td width="100%" valign="top"></td>
	<td align="right" width="8"><img border="0" src="images/foot_002.png" alt=""></td>
	<td width="10"></td>
	</tr></table>
	<table width="98%" border="0" cellpadding="0" cellspacing="0"><tr>
	<td align="left" valign="top"><div class="standard">
	</div></td>
	<td align="right" valign="top">
<a href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.cicoandcico.com"><img border="0" src="images/valid-html401.png" alt="Valid HTML 4.01!" height="31" width="88"></a>
	<a href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.cicoandcico.com"><img style="border:0;width:88px;height:31px" src="images/vcss.png" alt="Valid CSS!"></a></td>
	</tr></table>
</center>
</body>
</html>
</body></html>
Return current item: CcCounter