Created
April 22, 2010 15:22
-
-
Save gofullstack/375365 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
// put together the requested (current) URL | |
$current_url = ($_SERVER['HTTPS'] ? 'https' : 'http') . '://' | |
. $_SERVER['HTTP_HOST'] | |
. $_SERVER['REQUEST_URI']; | |
// encode it for use in the src parameter | |
$current_url = rawurlencode($current_url); | |
?> | |
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php | |
echo $current_url; | |
?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:px"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment