Created
February 26, 2017 17:15
-
-
Save YurePereira/c204d311c87fddb7c6726dc63d51a67c to your computer and use it in GitHub Desktop.
Usando include_once e require_once no PHP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Caminhos dos arquivos a serem incluídos. | |
| $path1 = '<path>/filename_1.php'; | |
| $path2 = '<path>/filename_2.php'; | |
| //Usando a função include_once: | |
| include_once($path1); | |
| //O arquivo no $path1 não será incluído, pois ele já foi. | |
| include_once($path1); | |
| //Usando a função include_once: | |
| require_once($path2); | |
| //O arquivo no $path2 não será incluído, pois ele já foi. | |
| require_once($path2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment