Welcome To Snipplr


You searched for: http

Everyone's Recent Snippets



1 2 3 4 5 6 7 ... 36
Working on the problem described here: http://forums.att.com/t5/Data-Messaging-Features-Internet/3G-proxy-wnsnet-attws-com-strips-HTTP-response-headers/m-p/3294533/highlight/false#M59737 After some testing we found the below code to fix our troubl...
0 1229 posted 12 years ago by mightybs
The mail() function allows you to send emails directly from a script. Remember, that most of shared hosting providers require (for security reasons) to use the domain name of your hosting in "FROM" email, e.g. [email protected] for http://yourdomai...
1 1141 posted 12 years ago by apphp-snippets
Allows to perform PHP redirection (must be placed before any browser output).
0 923 posted 12 years ago by apphp-snippets
**Example of use:** <a href="http://www.php.net/manual/en/index.php"><img src="<?php echo get_favicon('http://www.php.net/manual/en/index.php') ?>" alt="Favicon" title="See PHP documentation" width="16" height="16" /></a>
0 1779 posted 12 years ago by phpdev
Script per copiar els fitxers canviats en una revisió git al servidor remot via sftp, using PHP Secure Communications Library (phpseclib): http://sourceforge.net/projects/phpseclib/. Útil per usar amb 1and1.
0 1149 posted 12 years ago by marcniko
If you are using the [TimThumb](http://code.google.com/p/timthumb/ "TimThumb on Google Code") script with a URL the contains tildes (~) and images are breaking, here is the fix... I did not create this snippet but found it extremely useful so I th...
0 1220 posted 12 years ago by tacudtap
When box sizing is set, the padding, border and margin no longer add onto the total width or height of the element. Instead, they eat into the set width or height. So, if you have a box whose width is set to 300px, and padding set to 10px, then the t...
1 1136 posted 12 years ago by bmayzure
When using a CSS3 property that has vendor-prefixed versions available, I indent as usual with one tab and then use spaces to line up the properties on the colon. This allows for easy editing of all ‘sibling’ properties at once using [Sublime Tex...
1 1238 posted 12 years ago by Todd
The idea is to use this piece of code inside a virtualhost block
0 1177 posted 12 years ago by therobot
Thanks Dan Gayle. http://www.dangayle.com/import-feeds-wordpress-fetch-feed/
2 1361 posted 12 years ago by adambundy
jQuery Mobile <head> template with needed css and js from CDN. From http://http://jquerymobile.com/
0 1116 posted 12 years ago by goo
A combinations of 3 technologies. Needed to create Excel files within a Python Flask web framework environment and have it sent via HTTP to client to be handled by the jquery.fileDownload library. Notes: 1. Flask has to set a cookie specified by...
0 2006 posted 12 years ago by doronhor
Script File launched every 3 minutes to check WebSite status. It uses AWSSDKforPHP library http://docs.amazonwebservices.com/AWSSdkDocsPHP/latest/DeveloperGuide/php-dg-setup.html
0 1010 posted 12 years ago by cduquev
[register_nav_menus](http://codex.wordpress.org/Function_Reference/register_nav_menus,"register_nav_menus") [wp_nav_menu](http://codex.wordpress.org/Function_Reference/wp_nav_menu,"wp_nav_menu") [in_category](http://codex.wordpress.org/Function_Ref...
0 1020 posted 12 years ago by hell0world
Useful trick from css tricks blog at http://css-tricks.com/snippets/jquery/fixing-ie-z-index/
0 1171 posted 12 years ago by rumremix
I am using thesis developer version to redesign the site [FFXIV Gil](http://www.cheapffxivgils.com/ "Cheap FFXIV GIL"). Before using the code, you should add the Unique Hook Name to BOX in template(see [the official tutorial](http://diythemes.com/t...
0 872 posted 12 years ago by hell0world
CSS3 Ajax Loading Animation ======== This is a simulation for the popular gif animated images. The reason why i choose to do it in css3 is the flexibility of re-using it in different sizes, different colors and the transparency issues in gif anim...
1 1084 posted 12 years ago by MohamedAlaa
This is a static session wrapper that handles single variables and arrays. It allows setting, resetting, and deleting session variables (without destroying the session). It regenerates the session id every time a session is started to prevent sessi...
0 1118 posted 12 years ago by halk
https://gist.github.com/4098493 (examples of use below the class code) This class allows you to load a file of snippets that are really mini-templates copy them from your repository fill the token slots in them the with your data and render them as...
0 1192 posted 12 years ago by halk
Sends the user to a different Drupal page. This issues an on-site HTTP redirect. The function makes sure the redirected URL is formatted correctly.
0 925 posted 12 years ago by dilios
Does not require http in the text to link. It must start with www however. Optionaly make the links popup in a new window.
0 1529 posted 12 years ago by halk
This is a public jsonp api. I use it with jQuery Like This: $.getJSON("http://yourdomain/yourpath/jsonp_api.php?method=getSchema&params=your_db_name&jsoncallback=?", function(data){ //DO SOMETHING WITH THE DATA HERE }...
1 1299 posted 12 years ago by halk
Adding this snippet to the functions.php of your wordpress theme will restrict wp-admin access to certain users as defined at http://codex.wordpress.org/Roles_and_Capabilities And also still allows for user access to admin-ajax.php , async-uplo...
0 838 posted 12 years ago by jsmithies
thanks to... http://gskinner.com/RegExr/ http://daringfireball.net/2010/07/improved_regex_for_matching_urls
1 2669 posted 12 years ago by brandonjp
This function dosen't use curl, or any other libraries. Just include it in your function library and use it like this: $Post_result = _post('http://www.yourdomain.com/your_path/post_api.php',"method=fetchJson&params=select * from user");
0 1220 posted 12 years ago by halk
Take control of HTTP header status codes.
1 1207 posted 12 years ago by o0110o
http://blog.sqlauthority.com/2008/08/26/sql-server-how-to-rename-a-column-name-or-table-name/
0 830 posted 12 years ago by BrentS
As portrayed by the example found in the [Advanced Bash Scripting guide](http://tldp.org/LDP/abs/html/here-docs.html) this demonstrates a few techniques
0 1043 posted 12 years ago by symsec
As portrayed by the example found in the [Advanced Bash Scripting guide](http://tldp.org/LDP/abs/html/here-docs.html) this demonstrates a few techniques
0 1014 posted 12 years ago by symsec
Snippet obtained from Stackoverflow courtesy of [Loki Astari](http://stackoverflow.com/a/130428)
0 1299 posted 12 years ago by symsec
1 2 3 4 5 6 7 ... 36