Manual of PHP

 
 
 

Web map

 
rim   rim
Carriedarrow code Inclusion

 

Code inclusion from a file To print E-mail

Sometimes it is necessary to load the same file in different scripts and thus not to repeat the same code in diverse scripts. It seems then reasonable that some method must exist or forms of loading some external file and thus to generate more dynamic web pages.

To this effect PHP he has two instructions to be able to load files:

require (I "file");
When a file is included with require the interpreter leaves the way PHP and enters way HTML, as soon as the file was opened includes it up to his last line and later it leaves the way HTML to return to posicionarse in the way PHP. His principal difference with include () is that it does not allow the conditional load.

include (I "file");
When a file is included with require the interpreter leaves the way PHP and enters way HTML, as soon as the file was opened includes it up to his last line and later it leaves the way HTML to return to posicionarse in the way PHP. The conditional load allows, that is to say, that we can load a file or other if a condition is fulfilled or not.

Previous chapter:
Functions in PHP

Following chapter:
Counterfoils (array)



 

 
Front
Chapters of the Manual of PHP
Introduction to PHP
Variables
My First Script PHP
Operators in PHP
Structures of Control
Functions in PHP
Code inclusion
Counterfoils (array)
Chains of Characters
Classes
Dates
Entry and Exit
Operations with Files
The language SQL and PHP
Connection with MySQL
Meetings
Forms with PHP
To practise in line
List of practices in line
FAQ
Frequent questions
Codes PHP
List of Codes PHP
Forums
Forums PHP
Other Manuals
Manuals of other languages
 
   
 
 
MySpaceScripts.info - Sitemap - Contact us - Sitemap - Contact us - Sitemap - Contact us

Mortgage calculator , cars , signals forex , Traffic Exchange , Website designer Dublin , car.nice-car.co.uk , Conference Organizers Poland