PHP And Ajax Related Useful Resources and CodesPHP And Ajax Related Useful Resources and CodesUseful Tools, Tutorials, Codes , Tips, Tricks and Resources for all Ajax and Php beginners and experts . Articles
North American phone number format validation using Regular expression in P
2008-02-08 11:06:00 Last day i saw that one of my friend looking for the validation script in PHP which post the phone no (number) of USA from the text box and wanted to validate it from PHP in the following format. SHARETHIS.addEntry( { title: "North American phone number format validation using Regular expression in PHP", url: "http://roshanbh.com.np/2008/02/phone-num ber-validation-php-regular-expression.htm l" } ); More About: Phone , Validation
Register Globals ( register_globals ) ?on? security problem in PHP
2008-02-07 17:45:00 Do you know what happend when register_globals is set to ON in php.ini?? When it is set to ON it registers Environment, GET, POST, COOKIE or Server variables as global variables i.e. you don’t need to write $_POST[’username’] to access the posted ‘username’ variable you can simply use ‘$username’ to access the $_POST[’username’]. SHARETHIS.addEntry( { title: "Register Globals ( register_globals ) “on” security problem in PHP", url: "http://roshanbh.com.np/2008/02/register_ globals-php-security-problem.html" } ); More About: Security , Problem
A programmer in extreme frustration- God help me !!
2008-02-04 18:30:00 Friends, today I’m not going to talk about PHP , Ajax or MySql either. I’m going to talk about the disaster and hurdle I’m facing here in Nepal as web developer in this stone-age country.I haven’t found any place to show my frustration so I’m sharing my grief out here in this blog. SHARETHIS.addEntry( { title: "A programmer in extreme frustration- God help me !!", url: "http://roshanbh.com.np/2008/02/programme r-in-exterme-frustration.html" } ); More About: Extreme , Frustration , Programmer
Absolute path and Relative path file inclusion in PHP
2008-01-31 19:35:00 First let me explain you about absolute path and relative path in the server with the example using include() function of PHP. include(”/home/example/public_html/ config.php”); //absolute path include(”config.php”); //relative path SHARETHIS.addEntry( { title: "Absolute path and Relative path file inclusion in PHP", url: "http://roshanbh.com.np/2008/01/absolute- path-and-relative-path-file-inclusion-in- php.html" } ); More About: File , Inclusion , Path
How to return value from Ajax Function - Use synchronous request
2008-01-29 19:42:00 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. SHARETHIS.addEntry( { title: "How to return value from Ajax Function - Use synchronous request", url: "http://roshanbh.com.np/2008/01/how-to-re turn-value-from-ajax-function-use-synchro nous-request.html" } ); More About: Request , Return , Synchronous
How to solve the problem of retrieving same value by Ajax - Browser Cache P
2008-01-28 12:24:00 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 ... SHARETHIS.addEntry( { title: "How to solve the problem of retrieving same value by Ajax - Browser Cache Problem ", url: "http://roshanbh.com.np/2008/01/how-to-so lve-the-problem-of-retrieving-same-value- by-ajax-browser-cache-problem.html" } );
Populate triple drop down list (change options value) from database using A
2008-01-24 11:17:00 I’ve got many email from people asking for populating triple drop down list from the database using Ajax and PHP after posting the first article related to the ajax dropdown list using php Now let show you how to create it quickly. SHARETHIS.addEntry( { title: "Populate triple drop down list (change options value) from database using Ajax and PHP", url: "http://roshanbh.com.np/2008/01/populate- triple-drop-down-list-change-options-valu e-from-database-using-ajax-and-php.html" } ); More About: Change , List , Database , Options , Drop
Getting filename and extension in PHP using explode() ,basename() and pathi
2008-01-22 11:22:00 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(). SHARETHIS.addEntry( { title: "Getting filename and extension in PHP using explode() ,basename() and pathinfo()", url: "http://roshanbh.com.np/2008/01/getting-f ilename-and-extension-in-php-using-explod e-and-pathinfo.html" } ); More About: Extension , Explode , Path
How to run a php file automatically in a certain interval - Using Cron job
2008-01-18 06:19:00 In your project you might have to run a function or script (.php) file automatically for a various reasons like automatic sending email on birthday or automatically close a auction when the end_time is reached. What to do in that situation? .To do these things automatically, you must have a php file which must contains ... SHARETHIS.addEntry( { title: "How to run a php file automatically in a certain interval - Using Cron job", url: "http://roshanbh.com.np/2008/01/how-to-ru n-a-php-file-automatically-in-a-certain-i nterval-using-cron-job.html" } ); More About: File , Interval , Cert
Uploading larger files in PHP
2008-01-15 19:31:00 I’ve seen that many of my friends are struggling with the uploads of the bigger or larger files in PHP. After looking at their struggle, i’m here to solve the problem of uploading larger or bigger files in PHP. Most of the web servers are configured such a way that a user can only ... SHARETHIS.addEntry( { title: "Uploading larger files in PHP", url: "http://roshanbh.com.np/2008/01/uploading -larger-files-in-php.html" } ); More About: Files , Loading
Uploading larger files in PHP
2008-01-15 19:31:00 I’ve seen that many of my friends are struggling with the uploads of the bigger or larger files in PHP. After looking at their struggle, i’m here to solve the problem of uploading larger files in PHP. Most of the web servers are configured such a way that a user can only upload the maximum file ... More About: Files , Uploading , Loading
Encryption and Decryption Technique in PHP
2008-01-13 18:15:00 I’ve noticed that many of my friends are storing password in database without encrypting them. This is really a bad technique because if somebody who has access of the database can easily know the password of the particular person. The best functions available in PHP for encryption are md5() and sha1(). These both are one ... SHARETHIS.addEntry( { title: "Encryption and Decryption Technique in PHP", url: "http://roshanbh.com.np/2008/01/encryptio n-and-decryption-technique-in-php.html" } );
Encryption and Decryption Technique in PHP
2008-01-13 18:15:00 I’ve noticed that many of my friends are storing password in database without encrypting them. This is really a bad technique because if somebody who has access of the database can easily know the password of the particular person. The best functions available in PHP for encryption are md5() and sha1(). These both are one ... More About: Encryption , Technique
Visitor Overview of last 6 days -Thanks a lot for your Love !!!!
2008-01-12 18:05:00 I’ve moved this blog to my domain on 5th Jan 2008 before that i was operation blog http://php-ajax-guru.blogspot.com in the blogger.com. I find lots of Benefits of Wordpress and I’ve decided to move my blog to this domain. And before moving my blog to this domain, I used to get around 10 to 25 ... SHARETHIS.addEntry( { title: "Visitor Overview of last 6 days -Thanks a lot for your Love !!!!", url: "http://roshanbh.com.np/2008/01/visitor-o verview-of-last-6-days-thanks-a-lot-for-y our-love.html" } ); More About: Days
Visitor Overview of last 6 days -Thanks a lot for your Love !!!!
2008-01-12 18:05:00 I’ve moved this blog to my domain on 5th Jan 2008 before that i was operation blog http://php-ajax-guru.blogspot.com in the blogger.com. I find lots of Benefits of Wordpress and I’ve decided to move my blog to this domain. And before moving my blog to this domain, I used to get around 10 to 25 ... More About: Love , Visitor , Days , Overview
Slider Using PHP, Ajax And Javascript
2008-01-10 20:01:00 Have you been searching for the slider script and implementing it in Ajax with PHP then you are in the right place buddy. Ok let’s Begin it by creating the following tables in the database, CREATE TABLE `tbl_slider` ( `id` smallint(6) NOT NULL auto_increment, `slider_val` smallint(6) NOT NULL default ‘0′, PRIMARY KEY ... More About: Javascript , Slider
Slider Using PHP, Ajax And Javascript
2008-01-10 20:01:00 Have you been searching for the slider script and implementing it in Ajax with PHP then you are in the right place buddy. Ok let’s Begin it by creating the following tables in the database, CREATE TABLE `tbl_slider` ( `id` smallint(6) NOT NULL auto_increment, `slider_val` smallint(6) NOT NULL default ‘0′, PRIMARY KEY ... SHARETHIS.addEntry( { title: "Slider Using PHP, Ajax And Javascript ", url: "http://roshanbh.com.np/2008/01/slider-us ing-php-ajax-and-javascript.html" } );
Blogger Sucks, Wordpress Wowww!!
2008-01-06 19:07:00 After spending 25 days in blogger.com, with the blog named http://php-ajax-guru.blogspot.com, i finally decided to move my blog to my own domain. Well, first of all i was quite happy with my blogger account. But i noticed that lots of big name of bloggers are not using the blogger.com. And, i was interested to know ... More About: Wordpress , Blogger , Sucks
Blogger Sucks, Wordpress Wowww!!
2008-01-06 19:07:00 After spending 25 days in blogger.com, with the blog named http://php-ajax-guru.blogspot.com, i finally decided to move my blog to my own domain. Well, first of all i was quite happy with my blogger account. But i noticed that lots of big name of bloggers are not using the blogger.com. And, i was interested to know ... More About: Wordpress , Blogger , Sucks
Hiding PHP file extension
2008-01-01 16:01:00 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 small technique for you, you can use .html or .asp file to work as a php file i.e. use .asp or .html extension instead of .php. You just need to create a .htaccess file and put the following code in the .htaccess file. Remember that the .htaccess file should be placed in the root folder of your website.# Make PHP code look like asp or perl codeAddType application/x-httpd-php .asp .plif you place the the above code in the .htaccess file then you can use contact.asp as the name of the file. Now a visitor thought that it is a ASP file but this file contains the codes of PHP.You can put the following code in .htaccess file to work .htm or .html file as PHP file.# Make all PHP code look like HTMLAddType applicat... More About: File , Extension
Hiding PHP file extension
2008-01-01 16:01:00 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 small ... More About: File , Extension
Hiding PHP file extension
2008-01-01 16:01:00 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 small ... More About: File , Extension
Hiding PHP file extension
2008-01-01 16:01:00 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 small ... More About: File , Extension
301 redirect in PHP and .htaccess
2007-12-29 18:12:00 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 search engine. Furthermore, if you place the custom error page, then also you will be keep loosing ranking in upcoming days in search engines as the original file could not be found in the old URL. So what is the solution for this?? The solution is 301 redirect which means moved permanently. It is is the most efficient and search engine as well as visitor friendly method for the webpage redirection.Why do you need 301 redirect ?Have you ever typed yahoo.com in your browser, what happens next is it will redirect you to www.yahoo.com, its all the result of the 301 redirect. so, why do you need to do so?. If you're not doing so, then you're splitting yourself to two different URL and search engine spi... More About: Redirect , Rect
301 redirect in PHP and .htaccess
2007-12-29 18:12:00 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 search ... More About: Redirect , Rect
301 redirect in PHP and .htaccess
2007-12-29 18:12:00 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 search ... More About: Redirect , Rect
301 redirect in PHP and .htaccess
2007-12-29 18:12:00 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 search ... More About: Redirect , Rect
Getting real IP address in PHP
2007-12-27 18:46:00 Are you using $_SERVER[’REMOTE_ADDR’] to find the the client’s IP address? Well dude, you might be amazed to know that it may not return the true IP address of the client at all time. If your client is connected to the Internet through Proxy Server then $_SERVER[’REMOTE_ADDR’] just returns the the IP address of the ... More About: Real , Address
Getting real IP address in PHP
2007-12-27 18:46:00 Are you using $_SERVER[’REMOTE_ADDR’] to find the the client’s IP address? Well dude, you might be amazed to know that it may not return the true IP address of the client at all time. If your client is connected to the Internet through Proxy Server then $_SERVER[’REMOTE_ADDR’] just returns the the IP address of the ... More About: Real , Address
Getting real IP address in PHP
More articles from this author:2007-12-27 18:46:00 Are you using $_SERVER[’REMOTE_ADDR’] to find the the client’s IP address? Well dude, you might be amazed to know that it may not return the true IP address of the client at all time. If your client is connected to the Internet through Proxy Server then $_SERVER[’REMOTE_ADDR’] just returns the the IP address of the ... More About: Real , Address 1, 2, 3, 4, 5 |



