If you want to add a counter to a web page or a website then use the below simple PHP Counter Script using MySql. It is very easy to implement it and it counts whenever a page is being refreshed and the script won’t reduce page speed, unlike page counter scripts. PHP Visitor Counter Script […]
Sample Programs
How to Get Source Code of a Web Page
If you are looking for How to Get Source Code of a Web Page or link then just follow below steps. How To Find A Web Page’s Source Code it easy? Source Code of a Web Page By using below PHP function you can easily get the source code of a web page, Source code […]
How to Create a Google Hangout Widget for Website
Google+ Hangout button for Website The Hangout button lets you launch a Google+ Hangout directly from your site. When you use the button, you can set up the Hangout in a variety of configurations. For example, you can specify Hangout apps that launch along with the Hangout and setup the Hangout as a regular Hangout […]
How to Get Current Page URL Using PHP
If you would like to know from which page the request has come from using post Method then there is a simple PHP script can solve your issue. Get Current Page URL Using PHP Check below script to Get Current page using PHP function getCurrentURLPage() { $s = empty($_SERVER[“HTTPS”]) ? ”: ($_SERVER[“HTTPS”] == “on”) ? […]
How to Refresh Page OnClick Using Javascript
Click to Add another Staff
How to Set Iframe Height to 100%
Use below snippet to set height of an iframe to 100%, however we can also set width of ifram to 100% also. <iframe src=”http://domain.com” frameborder=”0″></iframe> iframe { display:block; width:100%; height:100vh; }
How to Check the Last Day in Month
Check the Last Day in Month $startDate = “20150624”;$endDate = “20150722”;$startDate = strtotime($startDate);$endDate = strtotime($endDate);$dayLength = 60 * 60 * 24;$checkDateRange = ($endDate – $startDate) / $dayLength;$datesStartMonth = date(‘t’, $startDate);if ($checkDateRange > $datesStartMonth) {echo $error = “Date range should be with in one month”;}
How to Detect a Adblock on Website or Blog and Show Pop up Message
Many people these are installing plugins like Adblock to block ads on the websites/blog and for few People earning from Ads are the main income stream, so today I found this below script where it can detect whether the user has installed Adblock any other plugins which are not displaying Ads on the website and […]
Export to Excel Using PHP and Mysql
Below simple program will export mysql data values to excel sheet without using any PHP libraries. Export to Excel Using PHP and Mysql Note: IF you get errors or in excel all the data is in one column, then instead t tab space use, comma ‘,’.
How to Do Debugging in Javascript
Below is the way to do debugging in Javascript to get typeof objForm, forms.elements and form value.