Crying Glowing Sun

Archive for November 2008

Tricky concepts in PHP

Posted by: M A Hossain Tonu on: November 18, 2008

Include Vs Require

include() and require() are slightly different. Basically, include is conditional and require is not.

This would include ’somefile’ if $something is true:

if($something){
include(“somefile”);
}

This would include ’somefile’ unconditionally

if($something){
require(“somefile”);
}

This would have VERY strange effects if somefile looked like:

} echo “Ha! I’m here regardless of something: $something<br>n”;
if (false) {

Another interesting [...]

Tags: , ,

Intro

Hi! This is Tonu, I am an Engineer and an open source thinker, graduated from Dhaka University of Engineering and Technology,Bangladesh. with CSE background. Presently employed in an outsourcing software company in Bangladesh as Software Engineer. I love to work with PHP & AJAX. My fav php framework is CodeIgniter. Also my growing interests are on social networking technology and web security.

My Facebook Profile

M A Hossain Tonu's Facebook Profile

Favorite Quota

Good advice is often confusing, but example is always clear.

Follow Me in Twitter :)

My Linkedbd Profile

My Flickr Album

flame2

flame1

flame

S5001990

More Photos

Blog Stats

  • 1,353 hits

RSS DUET Alumni at alumnibd.org

  • An error has occurred; the feed is probably down. Try again later.

Live Traffic Feed