Skip to content

All posts by Kwacho - 3. page

PHP redirect Class with time delay, OOP.

Share Button

<?php /** PHP redirection with delay class *   Takes two parameters: *   $delay      – time delay in seconds i.e. 4 *   $location   – redirect location i.e. linuxget.co.uk    */ class […]

Share Button

PHP Class, Check if YouTube video Link Exists and display video info

Share Button

 <?php class CheckYouTubeVideo {     /** Set Success Message */     private function setSuccessMsg(){         $this->exists = “YouTube Video Exists :)”;         return $this->exists;     }          /** […]

Share Button

REGEX, Extract IP address IPv4

Share Button

Matches IPv4 IP addresses   Will display only IP addresses from the file.txt ! grep -o [0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]* file.txt grep -o ‘[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*’ file.txt grep -o ‘[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}’ file.txt   Some Extra…. Will […]

Share Button

Linux File Permissions Table – Permissions Explained

Share Button

Linux Files Permissions Complete Guide.

Share Button