Welcome To Snipplr
You searched for: http
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Simple call imageExists('http://example.com/image.jpg');
true if it exists else false.
0
1239
posted 13 years ago by MichaelM
This PHP class can be used to process credit card payments via Cybersource.
It can send HTTP requests to Cybersource SOAP Web services API server to perform several types
of operations to process credit card payments.
Currently it can request...
0
1153
posted 13 years ago by mafhh14
send mail with attached file
examples: http://framework.zend.com/svn/framework/standard/trunk/tests/Zend/Mail/MailTest.php
0
1141
posted 13 years ago by necode
"Escapa caracteres especiales en la cadena no escapada, teniendo en cuenta el conjunto de caracteres actual de la conexión para que sea seguro usarla en mysql_query(). Si se van a insertar datos binarios, esta función debe ser usada.
mysql_real_...
0
1545
posted 13 years ago by skozz
Save config: http://inchoo.net/ecommerce/magento/how-to-programmatically-change-magentos-core-config-data/
http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/how_to_add_a_custom_module_for_custom_admin_...
0
954
posted 14 years ago by necode
[Related SQL query to create the storage table](http://snipplr.com/view/56995/sql-query-to-create-a-table-in-mysql-to-store-tweets/ "Related SQL query to create the storage table")
0
2121
posted 14 years ago by eddequincey
http://codemagento.com/2011/04/observers-and-dispatching-events/
0
1709
posted 14 years ago by necode
Refer to the following:
http://codex.wordpress.org/Class_Reference/wpdb
0
1794
posted 14 years ago by redconservatory
A great plugin for Wordpress:
http://podscms.org
Currently does not play well with plugins that use custom fields but this will change in version 2.
For more information, refer to:
http://mondaybynoon.com/2010/01/04/introduction-to-pods-cms-w...
0
1115
posted 14 years ago by redconservatory
Created by me as a quick and secure way of creating a username and password for basic authentication via a .htpasswd file on an Apache server.
A live demo is available at http://www.chrishair.co.uk/supgha/
Thanks.
0
1222
posted 14 years ago by hairzo
use <?php>/images/someimage.gif
Such a path resolves to ..
http://www.yoursite.com/wp-content/themes/YOURTHEME/images/someimage.gif
0
939
posted 14 years ago by disgruntledillon
Using the bootstrap provided by http://jonathonhill.net/codeigniter/cron/
0
645
posted 14 years ago by littlebird
Ha az internet explorerben nem sikerül a fájl letöltése(olyan hibát dob, hogy nem tudja letölteni), akkor ezt a headerbe kell belerakni és már töltődik is a fájl.
0
1017
posted 14 years ago by oozolii
Serverside script for a personal DynDNS service.
Works together with a clientside script written in ruby [ http://snipplr.com/view/55484/own-dyndns-service-clientside-script/ ] .
Redirect to current saved IP(http, port 80):
http://dynDns.yourver...
0
1267
posted 14 years ago by madc
usefull navigation stuff works in magento 1.5.0.1
http://www.webdesign-blog.ch/?p=17
http://www.pauldonnellydesigns.com/blog/get-parent-category-name-in-magento/
0
1183
posted 14 years ago by nico65
Returns the same string, except with links wrapped in <a href=""> tags. Works on www.snipplr.com and on http://snipplr.com
A variation of the script on the attached URL.
0
1122
posted 14 years ago by nebojsac
Nothing revolutionary, just a simple implementation.
A reworking from Brian Cray's source code:
http://briancray.com/2009/08/21/tweeted-links-twitter-api-php-cache/
Note: requires creating a cache file, '/caches/twitter', relative to source.
0
1139
posted 14 years ago by richardmaisano
the POSIX Regex functions are deprecated in PHP 5.3.0 and removed in PHP 6.
http://us2.php.net/manual/en/function.eregi-replace.php
0
1145
posted 14 years ago by dubogii
Inspired by http://subesh.com.np/2010/08/magento-setting-default-shipping-method-cart-page/.
Basically Magento requires only countryId in shipment address to show shipment methods (at least in polish case). Very useful if you want user to select shi...
0
1302
posted 14 years ago by ef
If you've ever tried to subscribe to a podcast outside of iTunes but only have an iTunes URL, you know how frustrating it is. Turns out that you just need to spoof yourself as an iTunes client to see the direct feed URL. This script helps with exactl...
1
1928
posted 14 years ago by lasavior
Based upon http://csswizardry.com/2010/01/iphone-css-tips-for-building-iphone-websites/
0
1172
posted 14 years ago by withinmedianl
AddHandler application/x-httpd-php .php .htm ... worked for me (directory: xampp/apache/conf)
0
1031
posted 14 years ago by stephcode
Place snippet in functions.php. Works with the Shylock Adsense plugin (http://planetozh.com/blog/my-projects/wordpress-plugin-who-sees-ads-control-adsense-display/)
0
1204
posted 14 years ago by alp
This is a jquery full screen background image plugin for indexhibit using
http://srobbin.com/jquery-plugins/jquery-backstretch/
0
858
posted 14 years ago by orionrush
Ruby uses created_at and updated_at. Here cake will do the same thing.
based on http://book.cakephp.org/view/1015/created-and-modified
0
1197
posted 14 years ago by kendsnyder
Date format guide:
d = 01 to 12 ;
m = 01 to 12 ;
More formats: http://php.net/manual/en/function.date.php
1
1017
posted 14 years ago by sdxxx
shortcode :
[rss size="10" feed="http://wordpress.org/news/feed/" date="true"]
0
982
posted 14 years ago by nicomollet