This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function seconds($seconds) { | |
// CONVERT TO HH:MM:SS | |
$hours = floor($seconds/3600); | |
$remainder_1 = ($seconds % 3600); | |
$minutes = floor($remainder_1 / 60); | |
$seconds = ($remainder_1 % 60); | |
// PREP THE VALUES | |
if(strlen($hours) == 1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filter_var($email, FILTER_VALIDATE_EMAIL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bootstrap 101 Template</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- Bootstrap --> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// REQUIRE THE PEAR PACKAGE - https://pear.php.net/package/Archive_Tar/ | |
require_once 'Archive/Tar.php'; | |
// SETUP THE ARCHIVE OUTPUT | |
$tar_object = new Archive_Tar($outpath, true); | |
$tar_object->setErrorHandling(PEAR_ERROR_PRINT); | |
// TAR $file | |
if($tar_object->create(array($file))) { | |
/* DO STUFF */ |