How to find real ip address in php

find real ip address in php

How to find real ip address in php To find real ip address of a user in php use the following code snippet, <?php function realIpAddr() {          if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet         {                     $ip=$_SERVER['HTTP_CLIENT_IP'];          }         elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy         {      …

Read More
0
Share

How to Scroll to Top of Page with jQuery

Scroll to Top of Page with jQuery

How to Scroll to Top of Page with jQuery Nowadays we can see most of the website offering the scroll to top of the page while we scroll down in a page. Here we can discuss how we can acheive this using jQuery. $('#id').click(function() { $('html, body').animate({ scrollTop:0 }, 'fast'); return false; }); Share this: Facebook Twitter Google Email LinkedIn Pinterest Pocket Share this:FacebookTwitterGoogleEmailLinkedInPinterestPocket

Read More
0
Share

How to download file with speed limit in PHP

download file with speed limit in PHP

How to download file with speed limit in PHP In some website we can see that we can only download files at a certain download limit even if we have a good internet connection. This is because the file download has been set with a speed limit to download. In this tutorial let us see how we can acheive this using PHP. To do this you can use the following code snippet in your code. That’s all the code snippet…

Read More
0
Share

How to integrate skype call or chat to website

integrate skype call or chat to website

How to integrate skype call or chat to website In small business companies we know how important is the communication with customers. And we need people who visit the website to direclty make a touch with you. To do this Skype plays an important role for communication. In this tutorial let us see how we can integrate skype to website. For this purpose skype provided “Skype Buttons“. With this we can make a direct interaction with the people. To create…

Read More
1
Share

It doesn’t matter how slow you go – Motivational Quotes

It doesn't matter how slow you go - Motivational Quotes

It doesn’t matter how slow you go – Motivational Quotes It doesn’t matter how slow you go just as long as you dont stop Share this: Facebook Twitter Google Email LinkedIn Pinterest Pocket Share this:FacebookTwitterGoogleEmailLinkedInPinterestPocket

Read More
0
Share

jQuery – change form action based on selection

Scroll to Top of Page with jQuery

jQuery – change form action based on selection Let’s consider that we have one form and depends on the selection of fields in the form we need to submit the form to two different urls. This can be done using jQuery. For example. You’re trying to change the form action based on the selected value from a dropdown menu, <form class="search-form" id="search-form" method="post" accept-charset="UTF-8" action="/search/user"> <select id="selectsearch" class="form-select" name="selectsearch"> <option value="people">Search people</option> <option value="node">Search content</option> </select> <label>Enter your keywords: </label>…

Read More
0
Share