PHP Code to subscribe email address

Yes, We can include a file more than once ,Code will work fine in normal way but there will occur if there is function that is being used ,If file that is included has function and that function is used in this file then error will occur that a function cant be declared twice other wise file can be included more than one time but this is not a good way of coding. We should used include_once or require_once

<?php  
require_once('external_file.php');   
?>
<?php  
include_once('external_file.php');   
?>

 

Leave a Reply

Your email address will not be published. Required fields are marked *