1 2 3
function cache_function($buildCallback, array $args = array (), $timeoutMinutes = 60) {
$cacheKey = (is_array($buildCallback) ? get_class($buildCallback[0]) . $buildCallback[1] : $buildCallback) .
...
PHP On Cache any PHP function
by firesalamanders.openid.com,
January 15, 2008 01:26
Even more compression of th...
1 2 3 4
function cache_function($buildCallback, array $args=array(), $timeoutMinutes= 60)
{
$cacheKey = $buildCallback . ':' . implode(':', $args); // No need for ELSE{}
...
1 2 3
<?php $input = preg_replace("/(www\.|http:\/\/)([^\s]+)/", '<a href="http://$1$2" target="_blank">$1$2</a>', $input); ?>
PHP On Replace user input with link
by shtruc,
January 08, 2008 22:35
If i understand correctly, ...
PHP On Replace user input with link
by Jeremy Weiskotten,
January 02, 2008 23:21
Some examples of PHP linkif...
PHP On Replace user input with link
by Mlopez,
January 02, 2008 15:43
also doing the url first th...
PHP On Replace user input with link
by Mlopez,
January 02, 2008 15:41
ok, now the only problem is...
1 2 3 4
<?php function URLref($sentence){ $temp = explode(" ", $sentence); ...
PHP On Replace user input with link
by Mlopez,
January 02, 2008 01:40
im not quite sure what to d...
1 2 3 4
if (strpos($_SERVER['HTTP_REFERER'], '?') !== false) {
list($base, $query_string) = split('?', $_SERVER['HTTP_REFERER']);
parse_str($query_string, $parameters);
...
PHP On Log Referer, Excluding...
by Martindale,
December 17, 2007 20:32
I don't understand how that...
PHP On Log Referer, Excluding...
by Martindale,
December 14, 2007 19:17
Is there any way I can clea...
PHP On Log Referer, Excluding...
by typefreak,
December 14, 2007 19:12
Keep in mind that the 'http...
PHP On Output div block with PHP c...
by Paul Kemper,
December 08, 2007 08:57
I suggest that you adhere t...
1 2 3
<?php if (the_ID() == 8) { ?> ...
PHP On Output div block with PHP c...
by Casper,
December 07, 2007 19:35
You have a missing close br...
1 2 3
<?php echo (the_ID() == 8) ? '<div id="menu_show" class="slideshow"><img src="http://example.org/image.gif" alt="A picture" width="748" height="245" /></div>':'<div class="header"></div>'; ?>
PHP On Output div block with PHP c...
by techietim,
December 07, 2007 19:31
This is one way to shorten it
PHP On FLAC -> Multiple File Ty...
by wegosublime,
November 29, 2007 02:45
Meant to click on 5 stars, ...
PHP On FLAC -> Multiple File Ty...
by wegosublime,
November 29, 2007 02:41
Thanks very much dude! anyt...

Is there an example script ...