CSS Blur filter vs opacity
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
RewriteEngine On | |
RewriteCond $1 !^(index\.php) | |
RewriteRule ^(.*)$ index.php?l=$1 [L] |
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
<?php | |
$xml = simplexml_load_file("file.xml"); | |
//print_r($xml); | |
//echo '<br>'; | |
//echo $xml; | |
//echo '<br>'; | |
//$xml = simplexml_load_file("xml_file.xml"); | |
//$details = $xml->getName(); | |
//$type = $xml->show->attributes()->type; |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>RSS Feeds</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
</head> | |
<body> | |
<?php | |
$feedname = 'TechCrunch/'; // feedname/ or feed/ |
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
class Auth { | |
var $user_id; | |
var $username; | |
var $password; | |
var $ok; | |
var $salt = "shaz3e"; | |
var $domain = ".domain.com"; | |
function Auth(){ | |
global $db; |
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
# .htaccess - www -> http:// - http:// -> www - nice URLs | |
Options -Indexes | |
Options +FollowSymLinks | |
RewriteBase / | |
RewriteEngine On | |
## /id/product-name/ to index.php?id=id | |
RewriteRule ^([0-9]*)/(.*)$ index.php?id=$1 [L] |
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
# add www to any url | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC] | |
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301] | |
# remove www from any url | |
Options +FollowSymlinks | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^www\.domain\.com [NC] |
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
.htaccess | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ $1.php [L,QSA] | |
# http://domain/about -> http://domain/about.php | |
-------------------------------------------------- | |
.htaccess |
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
<?php | |
functino isValidEmail($email){ | |
$checkEmail = "/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/"; | |
// check if its valid email return true | |
if(preg_match($checkEmail,$email) > 0){ | |
return true; | |
}else{ | |
return false; |
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
<?php | |
echo randomString(10); | |
function randomString($length, $type = '') { | |
// Select which type of characters you want in your random string | |
switch($type) { | |
case 'num': | |
// Use only numbers |