Tricks Duniya -ONLINE SHOPPING GUIDE, MOBILE TRICKS, ANDROID TRICKS, HACKING

Full Version: (Download Count)One of the most wanted scripts for web devolopping begginers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I saw on internet that a lot of people try to find a script which can count how many times their link clicked. At first I also try to find that script but all were using SQL or very hard.But Now I have the easiest way to use the script.
   So may be some of web programmers already know on this site..But this is very helpful tutorial for beginners.


about script:-This script is almost a ready made script.You have to just upload it on hosting websites like 000webhost etc and install.You can also control download counts or clear counts.



Requirements:-
*000webhost account
*script file
                       (So here I am going to tell my secret!)  Tongue Smile Tongue Angel


Follow this tutorial step-by-step to make the script:-



1. Download this script ccount.zip -  218 KB


2.Extract this files in any new folder


3.You will see almost 5-6 files,and 3 folders in extracted folder.


4. Now Goto your 000webhost account and open File Manager and public_html.
                                           or
      Use my 000webhost login method without logging in 000webhost![/url][url=http://http://tricksduniya.com/Thread-For-Android-Upload-Edit-Download-Easily-on-000webhost-without-going-on-000webhost]


5. Upload you files in public_html.

    (Note:-All files should be in 1 folder and upload you folder same-to-same.Like if you files are in New folder so upload the whole folder in public_html.If you will use my above given 2nd method,it will become very easy to upload all files at once)



6. Your almost work is done now,Now go to your website which you have made in 000webhost and add /script's folder.
Like your.website.com/New Folder


7. As you open  that link a installation page will open.


8. Fill up details like password.


9.Now a page will open that says that "Please delete install folder from directory".Just do as it said.Go to your folder and delete Install Folder.


10. Now Open Again your website 
[b]your.website.com/New Folder[/b]


[b]11. This time a new page will open says click to add a link.[/b]


[b]12. Do the below steps to add link:-[/b]




* Determine which link you wish to count clicks on, for example:
        http://example.com/myFile.zip 

* Open the  New link page and submit your chosen link as a new link. In our example, you would enter

        http://example.com/myFile.zip as the Link URL. 

* When a link is submitted, a special tracking URL is generated by CCount. For example:

        http://example.com/ccount/click.php?id=123 

* To count clicks, use the generated tracking URL in your website instead of the original link. 

* Then, when a visitor clicks

        http://example.com/ccount/click.php?id=123


*CCount will count the click and redirect the visitor to the destination page:
        http://example.com/myFile.zip 


SiMPLE bUT IFFECTIVE!



13. Do the below steps to Displaying click count on your website:-

* Place the following code in the head of the web page (between and        tags), where you wish to display count statistics:

        <script src="http://your.website.com/ccount/display.php"></script> 

* Place the following code in your web page exactly where you want the count to appear:
        <script>ccount_display('LINK_ID')</script> 



* Replace LINK_ID with the actual link ID. In the first example generated ID was 123, so the actual code to display count would be:
       <script>ccount_display('123')</script>

 

* To show unique clicks, use this code this code instead:

       <script>ccount_unique('LINK_ID')</script>


I Know the aboce procedure is looking hard and long to do but try just for once...Then you will know how easy it is....!!!!

      Please comment here if you get stuck somewhere
                       !!HaPPy To HeLp YoU!!