Table of Contents

This repository is for Source Code snippets and dumps as a resource for software programmers everywhere. Please feel free to use/modify source code here without restriction. If you would like to contribute then please use the 'Problem, Formatting or Query' above and let us know?

Joomla

Create or Edit an Article in PHP

Create or Edit a Category in PHP

Send an email via Jooma Framework

Write to the database using Database

Get the current UK Terror threat Level from MI5

Redirect to a different page, component, article, etc

Write to a file on disk

Read and Write values from the Cookie

Create a new user and set its password

Obtain a list of new articles, their titles and url

Table Insert and Update Helper Functions

Purging all Trash at once via SQL

PHP

Sanitise POST and GET to protect against attacks

A Simple Web Form to Email

Using the GEN Table Data Framework

Execute a shell command and capture the output into an array

Access Passler PRTG Using PHP and retrieve sensor data

Get the HTTP response code text for a given code

Escape a string for display in a webpage

Get Headers from Curl Response

Google Safe Browsing Check via API

Looking URL in PhishTank via the API

OpenWeatherMap API in PHP Example

Parse the NOAA Space Weather Data in PHP

Sending and Processing Queries to Microsoft SQL Server

Generating captcha images with PHP

Elastix) to make a call from PHP via ARI (Asterisk REST Interface)

RsFormPro!

Setting Min and Max dates for a Date and Time Picker

Skinning your form with CSS

Screening out free email accounts in forms

Javascript/HTML

Browser Based Our Time, Your Time widget

Linux/Bash

Reanem all files to lower case names recursively

Find files with Modified Dates in the future and Fix

Wiki File Normalisation

using Yum update but excluding a package

Allow iftop to run without root

Asterisk (FreePBX etc)

How to dump out the blacklist using command line

Working version of SuperFetcha for who-called.co.uk

Programatically delete extension from Freepbx

Programatically list dynamic queue members from Freepbx

Synology

Where does DSM live on the synology box

Customising the favicons on your synology box