Category: php

  • 301 redirect in PHP and .htaccess

    What is 301 redirect ? You have a website and its all pages are ranked in the search engine. And now you’ve moved these files to a new domain. What will happen in this scenario!!. You are sending the visitor to “Error 404 – File not found” page when they follow your website in the…

  • Hiding PHP file extension

    Do you want to hide your web site’s server script identity ? If you don’t want to reveal the programming language ( server side script ) of your website to visitors of website so that any hacker or spammer will not be able to intrude or inject any code in your website. Here is a…

  • Change default directory page using .htaccess

    I know you guzy all know about index file. This is the default file which is executed in the web server. For example, if you type”http://naveenos.com” in this the browser, the “index.php” gets loaded first. This “index.php” file is commonly know as directory index file. Basically , the default executed file in the web directory…

  • Changing textbox value from dropdown list using Ajax and PHP

    from PHP using Ajax and this currency code will replace the value of textbox each time the dropdown list changes. Writing Code for changing textbox value from dropdown list using Ajax and PHP After looking at the above demo, let’s start writing code for the changing the currency code value in the textbox form Ajax…

  • Solving Floating point number precision lost problem in PHP

    The problem of precision lost in floating point number in PHP haunted me for about 10 minutes yesterday but I quickly figured out the problem and solved it as I was aware of this problem. But, I would like to post here it here so that many others PHP programmers, who are not aware with…

  • 6 free ajax chat applications using PHP

    While talking about chat application, these days people hate those kind application made in PHP which need page refreshing. In this post, I’ll show you six different free Ajax chat applications which might be very useful if you’ve to use Ajax based chat application. Depending upon the requirement of your chat application, you can use…

  • Creating and Parsing JSON data with PHP

    Today, I’m going to tell you something about JSON data and how we can handle them via PHP. Although, JSON stands JavaScript Object Notation, it is used by many other technologies like PHP and Java for data interchange format over the Internet. What is JSON? JSON is ultra-weight data interchange data format used over the…

  • PHP Framworks !! Why , when and which ?

    Well!! I know it’s been a long time, but what to do so many things to do and I’m having hard time to maintain this blog these days.Hope I will be regular like I was before. Today, I’m going to talk about some of the popular MVC PHP frameworks. A few people has asked me…

  • How did I reduce CPU overhead problem caused by MySql?

    From last day, We were having problem with a project which was shut down in the middle due to heavy traffic. As a technical manager, I was the person who to take charge over the project bring it down to the track. After doing few benchmark test, I came to know that the MySql access…

  • CodeIgniter : A recommendation for PHP Programmer

    I was thinking to publish this post way before but between my irregularity and busy schedule I couldn’t do that. Today, I would like to tell you that Why I choose CodeIgniter for my current project and recommend it for other programmers? I’ve used CakePHP for my one previous project in which I’ve used the…

  • Changing textbox value from dropdown list using Ajax and PHP

    In this post, you’ll see how to get the currency code of a country from PHP using Ajax and this currency code will replace the value of textbox each time the dropdown list changes. Writing Code for changing textbox value from dropdown list using Ajax and PHP After looking at the above demo, let’s start…