Since long days I was looking for a perfect system to track clicked link in my company website and at last I made the solution. Basically it’s easy to track click with the help of Google Analytics, jQuery or simple javascript. My solution has given below- The last portion of the above code is the solution to track all <a> tag’s href value which will be clicked. it’s the mechanism of Google Analytics Event tracking feature. I have tested it …
Category: Programming
Read articles, tips & tutorials, news and updates on programming language. I write on mostly all languages and try to share my experience with you so you don’t need to spent too much time to find the solution by yourself. Sharing is the true power of knowledge.
OOP Concepts (This is a CS108 handout on the basics terminology and structures of OOP.) Object Oriented Programming, OOP, is the must influential paradigm of our time. This handout summarizes the very basic style, elements, and vocabulary of OOP that are common to all OOP languages. OOP languages can have their obscure features, but the basic ideas of OOP are pretty straightforward. Pre-OOP In a classical compiled language like Pascal or C, data-structures and their operations are arranged logically, but …
MLM Hand Level Programming Introduction: In our modern MLM business policy you have seen that new member always come through one referral and the newly registered member will go the ‘Referral’ bottom line. In this problem we have to figure out the PHP code snippet and the Database design so that we can track everything and we can show the hand level output for each user. Problem: Suppose ‘A’ is the director of ‘I-Media’. He has now …
To show any specific length of a strings in PHP we can use the following functions. function excerpt($str, $length=10, $trailing=’…’) { /* ** $str -String to truncate ** $length – length to truncate ** $trailing – the trailing character, default: “…” */ // take off chars for the trailing $length-=mb_strlen($trailing); if (mb_strlen($str)> $length) { // string exceeded length, truncate and add trailing dots return mb_substr($str,0,$length).$trailing; } else { // string was already short enough, return the string $res = $str; …
To remove all the HTML tags from your PHP string we can easily use strip_tags ($YourStrings) or preg_replace ('/<[^>]*>/', '', $YourStrings) [adsense_id=”2″]