Daily Archives: 04/05/2012

what is the use of include() and require() in php

May 4, 2012   php   Author: 
include() and require() are used to call the php files, this functions are used when a file is needed by more than one or two php files   For including file, code reuse For example: index.php [code type=html] <html> <head> <title>Tobbynews</title> </head> <body> <?php echo “welcome”; ?> </body> </html> [/code] This html codes are used in almost all php files, so we have to include this code in separate file and call that files where we wanted [code type=html] <html> <head> &l