14
2013
Getting Started with PHP: Part 3: Structure and variable existence
And here we are on part 3 of “Getting Started with PHP”! Today we have… Using effective website structure to make your life easier Overview of PHP isset and empty commands Using PHP to do your heavy lifting (using variables) Overview of PHP Isset && Empty Commands Within PHP, it is important to determine if our variables ‘actually’ exist, and/or are specified in any number of formats. For example: $variable = NULL; echo $variable; Will […]
12
2013
Getting Started with PHP: Part 2
Continuing the tutorial series on getting started with PHP (see “Getting Started with PHP” for the last batch), today I’ll provide some information on… Including external files Assigning PHP variables and constants Overview of variable and constant usage Including External Files PHP allows us to include external files that allow us to decrease the amount of redundant/repeated code used, as well as a security measure for important files such as files containing database connection details, […]
Recent Snippets
- htaccess : Only allow access to specific wordpress upload types if logged in
- MySQL : Query WordPress Database for Invalid Media Filenames
- PHP : Get Actual IP Address with PHP
- JavaScript : Allow Tab in Textarea
- PHP : Clean sanitized database contents on output
- htaccess : Force www. prefix in URIs
- PHP : Force File Download with Correct Content Type
- Wordpress : Disable upgrade notification