Created
May 22, 2022 19:54
-
-
Save jocile/688d0c5b114e5da458c107d443b16a15 to your computer and use it in GitHub Desktop.
PHP examples
This file contains 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 | |
/** Carrega automaticamente uma classe quando instanciada | |
* @package bibliotecaphp | |
* @method __autoload | |
* @version 2 | |
* @pattern MVC Controller | |
* @author PHP POO | |
* @param string $classe | |
* @date - 21/02/2012 | |
*/ | |
function __autoload($classe){ | |
//pastas de classes | |
$pastas = array('../../bibliotecaphp','../model','../control','../view'); | |
foreach ($pastas as $pasta) | |
if (file_exists("{$pasta}/{$classe}.class.php")) | |
include_once "{$pasta}/{$classe}.class.php"; | |
} | |
?> |
This file contains 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
GIF89a �O �\Y=./����RN�������16���������|v����tm�-6�ž����qj���ZW��~��<=�䗖�ށ����└�ü������BF�qk��`^�ﴲ�EC���05������_a����PNﱭ��d`�����vp�DC�� F01��fa����rk�|u�������� !� O , ڀOO L������L0E���!�O�6K����;MLJ���� %L.F�F),�F'�=&LA �?N�7N �"BL�DN�@�D:8�4A�A���D�1+�C���ND�<�M��� | |
���M����k���<���� ?&��0�Y;��)�G��<5 @l����yHh� I�Ibʜ�rCO$�@³�O$ 0����#H�*��c��@ ; |
This file contains 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
�PNG | |