Last active
January 25, 2016 13:45
-
-
Save zoerab/d21913dc6fc31760009d to your computer and use it in GitHub Desktop.
PHP basic skeleton structure
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 | |
/**************************************************** | |
* Initialisation | |
****************************************************/ | |
$_srv = $_SERVER['PHP_SELF']; | |
try | |
{ | |
function __autoload($className) { | |
require_once "Classes/$className.class.php";} | |
include("Connections/pdo.inc.php"); // database connection and selection | |
include("Connections/myExceptionFunctions.inc.php"); // exception handling funtions | |
/******************************************* | |
* Input en processing | |
********************************************/ | |
if (! isset($_POST["submit"])) // Creation of the Form | |
{ | |
} | |
else // Form content processing | |
{ | |
} | |
/********************************************* | |
* output | |
**********************************************/ | |
} | |
catch (Exeption $_e) // exception handling | |
{ | |
echo exceptionTestMessage($_e); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment