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 | |
// Show all information, defaults to INFO_ALL | |
phpinfo(); | |
?> |
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
@charset "UTF-8"; | |
/* CSS: Turn Images Black and White */ | |
/* for more info go to: http://demosthenes.info/blog/532/Convert-Images-To-Black-And-White-With-CSS */ | |
filter: grayscale(100%); | |
-webkit-filter: grayscale(100%); | |
-moz-filter: grayscale(100%); | |
-ms-filter: grayscale(100%); | |
-o-filter: grayscale(100%); |
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
@charset "UTF-8"; | |
/* Web Font stacks */ | |
/* The Times New Roman-based serif stack: */ | |
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; | |
/* A modern Georgia-based serif stack:*/ | |
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif," "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; | |
/*A more traditional Garamond-based serif stack:*/ |
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> | |
<meta charset = "utf-8"> | |
<title> </title> | |
<link rel="stylesheet" href="style.css"> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<!--[if IE]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> | |
<script scr ="script/script.js"></script> | |
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 | |
ini_set('display_errors', 'On'); | |
error_reporting(E_ALL | E_STRICT); | |
?> |
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
<? | |
/* | |
// This file will run a test on your server to determine the location and versions of ImageMagick. | |
//It will look in the most commonly found locations. The last two are where most popular hosts (including "Godaddy") install ImageMagick. | |
// | |
// Upload this script to your server and run it for a breakdown of where ImageMagick is. | |
// | |
*/ | |
echo '<h2>Test for versions and locations of ImageMagick</h2>'; | |
echo '<b>Path: </b> convert<br>'; |
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
Basic Link Rollover as CSS Sprite | |
a { | |
display: block; | |
background: url(sprite.png) no-repeat; | |
height: 30px; | |
width: 250px; | |
} | |
a:hover { |
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
Set iPhone Bookmark Icon | |
Place this in your <head> section, and set the href attribute to an image to a 57px x 57px PNG file. | |
<link rel="apple-touch-icon" href="iphone-icon.png"/> | |
To prevent the iPhone from adding it's own gloss: | |
<link rel="apple-touch-icon-precomposed" href="icon.png" /> |
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
Open Link in New Window | |
Invalid, but works: | |
<a href="http://website.com" target="_blank">This link will open in new window/tab</a> | |
Valid, but obtrusive: | |
<a href="http://website.com" onclick="window.open(this.href); return false;" onkeypress="window.open(this.href); return false;">This link will open in new window/tab</a> |
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 | |
// Don't forget to install URL_to_Absolute | |
// Found at http://www.electrictoolbox.com/examples/url_to_absolute.zip | |
function get_biggest_img($url){ | |
require_once('simple_html_dom.php'); // PHP Simple HTML DOM Parser. | |
require_once('url_to_absolute/url_to_absolute.php'); // get image absolute url. | |
// options | |
$biggestImage = 'path to "no image found" image'; // Is returned when no images are found. |
NewerOlder