Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged web



« Prev 1 Next »
<p>Follow these steps to secure your Cakephp Website:</p> <p>*Before you actually start using Security Component functionality, make sure you use $components = array (‘Security’, ‘Auth’) in the array so you can extend its functionality in...
0 816 posted 9 years ago by cakephpexpert
Translate non alphanumeric characters into an underscore. Doesn't create double underscores if there's two spaces in a row. Also turns name to lowercase. Use with trim to avoid spaces at front or end.
0 1261 posted 9 years ago by flatearthcomms
**Example of use:** $bIsConnected = check_internet_connection(); $sText = ($bIsConnected) ? 'You are connected to the Internet.' : 'You are not connected to the Internet.'; echo $sText;
0 1632 posted 11 years ago by phpdev
Use by sending a unix timestamp to countTime(timestamp). It will return something like 40 seconds , 2 weeks, 1 hour. Then just format to your needs like we do in our app: Someone was here 10 minutes ago.
0 603 posted 13 years ago by GeorgeL
0 543 posted 13 years ago by metoikos
1 662 posted 13 years ago by 3k-
This simply php function will retrieve the links of the images from Google Images searched with a keyword. The function just calls images.google.it and parse the html to find the url of the images, in this case the urls are stored in the javascript,...
0 2584 posted 13 years ago by ginoplusio
This function calls pingomatic rpc service to increase traffic to your site. More info and instructions on [Barattalo blog](http://www.barattalo.it/2010/02/24/ping-pingomatic-com-services-with-php/ "read this post"). .
1 1103 posted 14 years ago by ginoplusio
by m13579m
0 675 posted 14 years ago by irm
this function formats a web address for use in a link.<br> echo formatWebAddress("google.com");<br> http://www.google.com/
1 560 posted 14 years ago by jlvallelonga
0 520 posted 14 years ago by pashky
Skor PHP Template class can assign individual variable values or arrays with several variable values. A separate sub-class extends the base class to support delimited template section replacements.
0 527 posted 14 years ago by Agundur
0 490 posted 16 years ago by asteinhaus
I got most of these tips out of a great book published by O'Reilly (my favorite web-design publisher): &quot;Programming PHP, 2nd Ed.&quot; by Lerdorf, Tatroe, and McIntyre. Another good book is &quot;Essential PHP Security,&quot; also published by O...
2 1159 posted 17 years ago by pckujawa
0 798 posted 17 years ago by whitetiger
deliciousにポストするサンプル
0 425 posted 17 years ago by jugyo
« Prev 1 Next »