All posts by Kwacho - 3. page
PHP redirect Class with time delay, OOP.
<?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 […]
PHP Class, Check if YouTube video Link Exists and display video info
<?php class CheckYouTubeVideo { /** Set Success Message */ private function setSuccessMsg(){ $this->exists = “YouTube Video Exists :)”; return $this->exists; } /** […]
REGEX, Extract IP address IPv4
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 […]
Linux File Permissions Table – Permissions Explained
Linux Files Permissions Complete Guide.
- « Previous
- 1
- 2
- 3