Author Archives: arundavid

About arundavid

Web Developer / Designer / Programmer Hyderabad / Trichy, India

Change browser url without page reloading with ajax request using JavaScript, HTML5 history API, jQuery, PHP like Facebook, Github navigation menu


When you are working with ajax, the problem is that after you have loaded some content using ajax, you can’t change the URL of the browser according to the content. Because of this, reloading the page causes the new ajax content to disappear and it shows the previous page. Although you can resolve this problem [...]

How to get New Facebook Profile Timeline with header banner image


old-facebook-to-new-facebook

Facebook has introduced a new profile layout called ‘Timeline’ where you can put your own image as header banner image and also the status feeds will be in the grid layout. Now this feature is only opened for developers. To get the new profile, login to Facebook and follow the given steps… Step 1: open [...]

Facebook, Twitter like JSON feeds with PHP, JavaScript, Ajax, jQuery, MySQL


flow

When you go to Facebook or Twitter, The first thing you notice is that the page is loaded and within seconds the status feeds will be displayed. That is because the page is loaded first and after that it sends an ajax request to another page and gets back the feeds in the JSON format [...]

Facebook like friendly time with GMT and UTC using PHP & Javascript


Usually when we want to insert timestamps in a database. We will either put the column default as ‘Current Timestamp’ or insert the value ‘date(“Y-m-d H:i:s”)’ into that column. But both the methods will result in inserting only the server time in the database and visitors from all over the world will see the same server time in the website. [...]

Both sement based and query string(GETmethod) variables in url of codeigniter site


codeigniter-segment-and-query-string-url

By default codeigniter doesn’t support query string or get method variables, we can use only segment based url. To enable both segment base and query string (GET method) variables, you need to follow the upcoming steps… 1 ) In yout codeigniter config file change the uri_protocol as specified bellow, application/config/config.php $config['uri_protocol']    = ‘AUTO’; to $config['uri_protocol']   [...]

Remove index.php from url of codeigniter site using htaccess


codeigniter-remove-index.php-htaccess

Usually when we run a CodeIgniter website, the url will have index.php after the hostname. To remove this we need to use mode_rewrite, htaccess. First just check your php info of your server whether you have loded mod_rewrite module. To check this create  ‘php-info.php’ file and put the following contents and run it. php-info.php <?php [...]