Colors of social brands is [here][2]
Facebook Share
http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwebsite.com&t=url%20encoded%20text
Facebook Like Button
http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwebsite.com
| ./configure \ | |
| --prefix=/usr \ | |
| --mandir=/usr/share/man \ | |
| --infodir=/usr/share/info \ | |
| --sysconfdir=/private/etc \ | |
| --with-apxs2=/usr/sbin/apxs \ | |
| --enable-cli \ | |
| --with-config-file-path=/etc \ | |
| --with-libxml-dir=/usr \ | |
| --with-openssl=/usr \ |
| function utf8mail($to,$s,$body,$from_name="x",$from_a = "info@x.com", $reply="info@x.com") | |
| { | |
| $s= "=?utf-8?b?".base64_encode($s)."?="; | |
| $headers = "MIME-Version: 1.0\r\n"; | |
| $headers.= "From: =?utf-8?b?".base64_encode($from_name)."?= <".$from_a.">\r\n"; | |
| $headers.= "Content-Type: text/plain;charset=utf-8\r\n"; | |
| $headers.= "Reply-To: $reply\r\n"; | |
| $headers.= "X-Mailer: PHP/" . phpversion(); | |
| mail($to, $s, $body, $headers); | |
| } |
| .hide-text { | |
| text-indent: 100%; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| } |
| # ---------------------------------------------------------------------- | |
| # ROOT/ folder .htaccess | |
| # ---------------------------------------------------------------------- | |
| # Laravel Note: | |
| # Note: Laravel is designed to protect your application code, | |
| # and local storage by placing only files that are necessarily | |
| # public in the public folder. It is recommended that you either | |
| # set the public folder as your site's documentRoot (also known as a web root) | |
| # or to place the contents of public into your site's root directory | |
| # and place all of Laravel's other files outside the web root. |
| <?php | |
| function redirect_back_or_default($url = null){ | |
| try{ | |
| return Redirect::back(); | |
| }catch(Exception $e){ | |
| return Redirect::to($url); | |
| } | |
| } |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
#A BADASS list for faster Web Development!
Recently, I decided to organize my bookmarks. So, like a good fellow, I am sharing with you. I hope you enjoy!
Frameworks | Weapons | Checklist | Docs | Community | Learning | For The Win
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Sharing Laravel's session and checking authentication | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Use the following code in any CMS (WordPress, Joomla, etc), filemanager (CKFinder, | |
| | KCFinder, simogeos's Filemanager, etc), or any other non-Laravel project to boot into | |
| | the Laravel framework, with session support, and check if the user is authenticated. |