PHP has some great functions to handle files withing a specified directory. The following custom functions and code examples show how to use them is real cases. Continue reading PHP list files in directories
Downloading some script or application using WGET is a common an quick way to start some web application or website. In my case I can’t remember me parameters I don’t use very often.
For example we like to install WordPress right into our public_html directory (not into a sub-directory), move to the website’s root directory first:
# cd /home/username/public_html/
Download the application from the WordPress website: Continue reading Download, extract and move a tar.gz file
This simple function generates a select element for all files of a given directory. Use this function together with the PHP download script on this site. The function is modified to work with “register_globals = off “. Use this custom function in forms to update dynamic image names in a database table. We demonstrate the select menu on our upload page demo, just upload a new file and select the uploaded file from the select menu on the demo page. Continue reading Create a select menu from files or directory