The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. DIRECTORY_SEPARATOR (string) PATH_SEPARATOR (string) <?php require_once (‘public’ . DIRECTORY_SEPARATOR . ‘index.php’); ?>
Category Archives: PHP
How to sanitize your php input
Never trust user input, it may be malicious, always check your php input. Check all global arrays like $_GET, $_POST, $_REQUEST, $_COOKIE, allow only known variables and make sure that they contain the right type of data. What does this mean ? It means that if you have a $_GET[‘id’] variable in your script which …
Generate Outlook Calendar Events with PHP and iCalendar
The internal web application at my company tends to send out a lot of email notifications. Some of them are reminders about various deadlines. Recently I got a feature request to allow people to add these reminders as events to their Outlook calendar.
PHP Remove NULL values from Array
Remove NULL values only
array_slice
array_slice — Extract a slice of the array http://uk.php.net/manual/en/function.array-slice.php
increase php upload limit
.htaccess