Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 119 120 121 122 123 ... 147
Affects <A> tags for links starting with $link Example: LinkReplacer ($text, 'http://www.snipplr.com') affects to <a href="http://www.snipplr.com">Snipplr</a> and <a href="http://www.snipplr.com/blog">Snipplr Blog</a>
0 1466 posted 16 years ago by kossmoss
6 1448 posted 16 years ago by kristarella
0 1552 posted 16 years ago by rezzz
3 1470 posted 16 years ago by petterdr
A basic PHP script that I simply FTP to the server and use to evaluate extensions on the server. I simply supply the extensions I require and the script does the rest of the work.
1 1370 posted 16 years ago by fackz
从数据库中选出大于3小于13的纯字母域名,然后进行过滤,得到双拼域名。 增加一个拼音预判断,过滤掉前两个字母不符合拼音要求的字符串。
0 1362 posted 16 years ago by zhengrenchi
delete all files in a directory that are more than 7 days old.
4 2101 posted 16 years ago by fackz
Simple way to escape string for LIKE statements, useful for searches.
3 1344 posted 16 years ago by robv
4 1526 posted 16 years ago by kristarella
This example adds tags and categories to the Thesis byline, each on a new line, and with the needed classes to match the other byline items. The byline is generated in thesis/lib/functions/content_functions.php (v1.4.2 at the time of writing) look...
5 1675 posted 16 years ago by kristarella
Alternate to <a href="http://snipplr.com/view/133530">this method</a>. Have not yet tested. In settings.php, put this code:
0 1277 posted 16 years ago by zachharkey
closes opened tags in text piece. original code slightly modified to supress PHP warnings NOTE: need to fix the order of closing tags to get standards compliance
0 1377 posted 16 years ago by kossmoss
Returns last word of a string (words separated by blanks). if string does not have any blanks, it will return the whole string.
1 1452 posted 16 years ago by fischkopp
2 1329 posted 16 years ago by spark9
include this snippet in your sites to force InternetExplorer 8 to display your site like InternetExplorer 7 In summary, IE7 compatibility support looks as follows: IE=7 Display in IE7 Standards mode; Already supported in the IE8 Beta 1 relea...
3 2999 posted 16 years ago by tobaco
4 1792 posted 16 years ago by iTony
3 1120 posted 16 years ago by joeymarchy
0 2119 posted 16 years ago by eden159
To convert links on a twitter status to a clickable url. Also convert @ to follow link, and # to search
3 1961 posted 16 years ago by mardix
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 2423 posted 16 years ago by uioreanu
1 1439 posted 16 years ago by apro2000
Instead of one element you can insert multiple at once: array($element1, $element2, $element3)
1 1780 posted 16 years ago by kurokikaze
3 2204 posted 16 years ago by jamesming
1 ... 119 120 121 122 123 ... 147