These are helper functions that just make things easier.
Given a block of
$html text, this function will search for any image
src attribute and replace the image
src URL with a reference to a local thumbnail of size
$dimensions and return the processed output.
This will process anything found in the
$_FILES superglobal. It will loop through and upload all valid files into
$destfolder. It makes file upload a sinch.
$dir folder and contents
If no URL is given, the page will be 302 redirected back to the REFERRER. If a URL is provided, the page will be redirected there instead. This is ideally used at the end of an app method like a post to return to the main view.
Unzip a file at
Downloads a file from
$url, saves to
Next we cover how to interact with the Database