Welcome To Snipplr
You searched for: http
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
PHP
Hypo CSV crawler - online banking statements downloader from Hypovereinsbank Munich, Germany using PHP & CURL CLI
updated 2013-04-18!
just replace the XXX fields with your own numbers. Then run this PHP Script from the command line (CLI mode). It will fetch the online statements from Hypovereinsbank direct banking.
The code works by tweaking CURL settings...
0
2308
posted 16 years ago by uioreanu
Alternative to
[http://snipplr.com/view/12616/strip-url-to-its-domain-name/](http://snipplr.com/view/12616/strip-url-to-its-domain-name/, "this snippet"), as it didn't come out clearly in the comments.
Update - Edited based on gdvickery's commen...
3
1901
posted 16 years ago by duniyadnd
To find your numerical Twitter ID, login to Twitter and click on your RSS feed (bottom of the page). The URL will look something like http://twitter.com/statuses/friends_timeline/12345678.rss. Your ID will be the 12345678.
9
1777
posted 16 years ago by nerdsane
AJAX by default only lets you play within your own Domain.com but there are plenty of times where you want to use someone else's feed. Check out http://snipplr.com/view/12466/jquery-parse-rss-feed/ to understand the rest.
1
1377
posted 16 years ago by chrisaiv
Create theme override file: `upload_attachments.tpl.php` in your theme directory.
[CSS styles](http://snipplr.com/view/11848)
2
1519
posted 16 years ago by zachharkey
A PHP function that correctly validates all parts of a given email address, according to RFCs 5322, 5321, 1123, 2396, 3696, 4291, 4343, 2821 & 2822. I’ve released it under a license that allows you to use it royalty-free in commercial or non-commer...
4
2261
posted 16 years ago by dominicsayers
Is.Gd is a URL-shortening service much like TinyURL. Using PHP’s cURL library, you can create shortened URLs on the fly with ease. “is.gd†is much shorter than “tinyurl.com†so if you need the URL to be as short as possible, use this method...
0
1437
posted 16 years ago by nerdsane
Function to return the current page name, without the location of it...
Eg, for the URL http://localhost/www/someproject/index.php, this would return index.php
1
1168
posted 16 years ago by xtheonex
[quote]$_SERVER['HTTP_REFERRER']'s problem is that can be spoofed, but it's better than nothing if you really want that.[/quote]
1
1712
posted 16 years ago by luizlopes
Based on Jdub7's Pure PHP Template function
http://snipplr.com/view/10797/pure-php-template-function/
2
1255
posted 16 years ago by thermosilla
reference:
http://codex.wordpress.org/Template_Tags/wp_list_categories
1
1042
posted 17 years ago by Ashung
I thought I would share this simple username password PHP auth script. It leans on HTTP to secure a page.. not bulletproof but quick and painless.
3
1454
posted 17 years ago by jadedbat
Also check out...
http://roshanbh.com.np/2008/10/creating-parsing-json-data-php.html
3
1723
posted 17 years ago by jamesming
For a complete list of time/date parameters, visit: http://php.net/manual/function.date.php
1
1141
posted 17 years ago by Jaymoon
This function will allow you to use '#ABCDEF' or '0xEEFF33' instead of the RGB values required for imagecolorallocate() by stripping away any non hex characters. It will also check and make sure that it's a valid 6 digit hex value after the stripping...
0
1219
posted 17 years ago by Jacolyte
Starting from here: http://snipplr.com/view/2534/update-copyright-date-in-php/ I made one that is a little more sussinct (sp?)
0
976
posted 17 years ago by SeanJA
Been wanting to made one of these for a while and finally I got round to it.
For some examples please visit the post:
http://www.dom111.co.uk/blog/coding/db/8
Any comments suggestions appreciated.
CreativeCommons ShareAlike
3
2750
posted 17 years ago by dom111
http://us.php.net/manual/en/language.oop5.autoload.php#82614
2
1448
posted 17 years ago by luizlopes
I use this code to place in blocks or pages to show a link to the user registration page if the user is not currently logged in. An example is a block I have setup on the home page of http://www.lightentheload.net. If the user is logged in, the block...
0
1326
posted 17 years ago by shrop
This function uses the power of regexp to check if some bad word are on the text, also offers the posibility to change those word for something else. Examples:\r\n\r\n$texto = \'fuck off!\';\r\nfiltrado($texto); returns true since a bad word has been...
1
1568
posted 17 years ago by oso96_2000
I was looking for a way to post new articles remotely, and cross domain. I only needed to post new articles, not read, edit or anything like that, so I did not need a whole GUI or any other Interface like those WP-Desktop-clients. I wrote this script...
0
1514
posted 17 years ago by j_junyent
Worst title ever. Basically, this takes a string like:
"Check this out: http://snipplr.com/view/5759/replace-a-url-its-domain-name-and-create-link/" and replaces it with "Check this out: snipplr.com [with a link to the full URL]"
1
1935
posted 17 years ago by jaytee
Many examples that show how to use the header() function of PHP
3
1849
posted 17 years ago by localhorst
The code below will format 2008-01-30 10:58:32 to Jan 30, 2008
See the page http://us2.php.net/date for a complete list of formatting codes.
2
1933
posted 17 years ago by meme
used as "http://www.somesite.com/index.php?xcr=page.php"
page.php is plugged into the template index.php which hold the shell of a site.
0
1945
posted 17 years ago by withremote