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, […]
10
2013
Getting Started with PHP
I figured that since I spend most of my time buried DEEP in complex php functions, classes, and tips, it may be helpful to provide some background on what the hell you’re actually supposed to do if you have no idea! That being said, I’m going to begin adding some more introductory content that will hopefully provide some insight and tips on where to get started, so that you can more effectively work with more […]
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