<?php
function convert_datetime($str)
{
...
PHP On DB Cache
by ellisgl.myopenid.com,
January 28, 2008 21:21
<?php
class MyClass{
function __construct(){
...
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...
function cache_function($buildCallback, array $args=array(), $timeoutMinutes= 60)
{
$cacheKey = $buildCallback . ':' . implode(':', $args); // No need for ELSE{}
...
<?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...
<?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...
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...
Here's the 2nd one I did th...