Recent Articles

How to run code of php5 on a server with php4 using htaccess

This is big question for beginners every time.Now as we know that php5 is in full flow but still there are lot of servers out there with php4 and if you upload your php5 code on those servers then it will be mess.May be your site will not run or any part or your will go down.But don’t worry friends , there are only 2 lines to put this problem far from you.
Just put these 2 lines below in a htaccess file and put that htaccess at the root directory.

AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

Now all the modules either they have written in php4 or php5 will work very well.

.htaccess file at godaddy

Godaddy a big name in the world of internet and web hosting. There are thousand of websites hosted on godaddy.com. Lot of programmers have faced godaddy, may be they are experienced or fresher. In today’s programming world htaccess is a comman name but its always an advanced topic specially for beginners. As search engine markting is growing everyday , the use of htaccess is also growing . But there is difference between godaddy’s htaccess and other htaccess , not very much but that is important to know for everybody.If you are not familiar with the rules of godaddy’s htaccess then it will make headache for you.
Read More..

Latest news in php – What is new in PHP 5.3

This release of PHP 5.3 is a major improvement in the 5.X series, which includes a large number of new features and bug fixes.

The key features of PHP 5.3.0 include:

* Support for namespaces
* Late static binding
* Lambda Functions and Closures
* Syntax additions: NOWDOC, ternary short cut “?:” and jump label (limited goto), __callStatic()
* Under the hood performance improvements
* Optional garbage collection for cyclic references
* Optional mysqlnd PHP native replacement for libmysql
* Improved Windows support including VC9 and experimental X64 binaries as well as portability to other supported    platforms

Read More..

MySQL Left Outer Join

Joins are very interesting topic in mysql.In my 4 years exp. i feel that every body knows about joins (experts and freshers) but freshers use joins very few.This may be because of their low thinking capability in starting or may be they find joins more typical then their local logic.Maximum beginners try to put their own logic rather then joins.

Today we will talk about left outer join .Not very common join but very effective join.
Suppose you have 2 tables. First “table1″ with 2 fields ‘id’ and ‘name.’ . Second “table2″ with 2 fields ‘id’ and ’salary’.In table1 “id” is primary key and in table2 field “id” is foreign key.

Read More..

How to check if an email address exists or not using php

We make lot of websites every month and 90% of them have a registration page or a contact us page where users have to fill their email id for get in touch with site owner.We hope that they will provide correct email address but what if user fill out a wrong email id that is not actually exists.In that case it will just fill one record in our database nothing else and if lot of users will do the same then it will make a burden on our database.

So before filling our database or executing a script we have to check if the email id provided by user is really exists or that is a bogus email address.
While there’s no foolproof way to make sure a user isn’t giving you a completely bogus email address, you can at least help cut down on the problem by making sure that email addresses your site is given at least correspond to a real domain.

Read More..