Archive for January, 2008

Page 1 of 3123

Absolute path and Relative path file inclusion in PHP

I think you guyz must be aware of absolute path and relative path in PHP. If you do not know anything about it then let me explain you about absolute path and relative path in the server with the example using include() function of PHP. You can see the example below, I've included the same files in PHP but the same file is included in two different manner. include("/home/example/public_html/config.php"); //absolute path include("config.php"); //relative path Full story

How to return value from Ajax Function – Use synchronous request

Have you ever tried to return values from the Ajax function ? Well it might be sometime the cases when you might have to return the value got from the server to another function rather than updating the component. Let's try to return the values from the traditional Ajax function. Full story

How to solve the problem of retrieving same value by Ajax – Browser Cache Problem

You might have faced the problem of the getting same response on the consecutive request to a PHP file from Ajax. Well, what happens when making repeated GET requests to the same URL can often lead to the response coming not from the server but from the browser cache. This problem mainly occurs while using in internet explorer. Now let's look at the various methods to solve this problem : Full story

Populate triple drop down list from database using Ajax and PHP

I've got many email from people asking for populating triple drop down list from the database without refreshing page using Ajax and PHP after posting the first article related to the ajax dropdown list using php .In this post, I've put three drop down of country , state and city and the drop down's value changes without refreshing the page. Now let show you how to create it quickly. Full story

Getting filename and extension in PHP using explode() ,basename() and pathinfo()

Getting the extension from a file name or name of the file from the full path is not a big hassle for the experienced programmer but it might be a annoying task for the beginners of PHP. Now let me find the solution for them using two functions of PHP called explode() and pathinfo(). Full story
Page 1 of 3123
Copyright © 2014 Roshan Bhattarai's Blog. All rights reserved.
Powered by WordPress.org, Custom Theme and ComFi.com Calling Card Company.