PHP On Log Referer, Excluding...

by Martindale, December 14, 2007 19:17

Is there any way I can clea...

72f4ba51b784673a15a1e89d8d9f49d1 Talk

PHP On Log Referer, Excluding...

by typefreak, December 14, 2007 19:12 Star_fullStar_fullStar_fullStar_full

Keep in mind that the 'http...

A2c8fecfd1fb707dd0a8f292ade77e1e Talk

PHP On Log Referer, Excluding...

by pkemper, December 13, 2007 07:19 Star_fullStar_fullStar_fullStar_full

Why not run a cron job (say...

0481b9ea2b2aad6844b33dbca2d7fe0e Talk
1
2
3
4
<?php
$domains = array();
$ref = $_SERVER['HTTP_REFERER'];
...

PHP On Log Referer, Excluding...

by techietim, December 12, 2007 23:40
441c4f02db55ef2cbe96027af7012e01 Talk

PHP On Output div block with PHP c...

by Paul Kemper, December 08, 2007 08:57 Star_fullStar_fullStar_fullStar_full

I suggest that you adhere t...

0481b9ea2b2aad6844b33dbca2d7fe0e Talk

PHP On Output div block with PHP c...

by K, December 07, 2007 19:44

Can I ask you guys a favor ...

B5ae59b19cc356df333baffffb9f2c91 Talk

PHP On Output div block with PHP c...

by K, December 07, 2007 19:43

Tim, thanks a lot! This is ...

B5ae59b19cc356df333baffffb9f2c91 Talk
1
2
3
<?php if (the_ID() == 8) { ?>
...

PHP On Output div block with PHP c...

by Casper, December 07, 2007 19:35 Star_fullStar_fullStar_full

You have a missing close br...

B849433e0e1a3f4ca0cf7cc55b8acd53 Talk
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 Star_fullStar_fullStar_fullStar_fullStar_full

This is one way to shorten it

441c4f02db55ef2cbe96027af7012e01 Talk

PHP On FLAC -> Multiple File Ty...

by wegosublime, November 29, 2007 02:45

Meant to click on 5 stars, ...

98ae5419a4fd2b739280c3ed7d6cdb3d Talk

PHP On FLAC -> Multiple File Ty...

by wegosublime, November 29, 2007 02:41 Star_fullStar_fullStar_full

Thanks very much dude! anyt...

98ae5419a4fd2b739280c3ed7d6cdb3d Talk
1
2
3
4
<?php

$flacpath = '/bin/flac';
...

PHP On FLAC -> Multiple File Ty...

by yaleman, November 28, 2007 22:14 Star_fullStar_fullStar_fullStar_full

I think what you need is a ...

F6ecf914dd8ae101aace8552d894ed1a Talk
1
2
3
4
<?php
echo '<select name="options">';
foreach(array("option1", "option2", "option3") as $i){
...

PHP On dynamic select box

by techietim, November 28, 2007 10:51

This should do it.

441c4f02db55ef2cbe96027af7012e01 Talk
1
2
3
4
	$proveedores = consulta("SELECT * FROM proveedores ORDER BY Nombre");
	while ($fila = mysql_fetch_assoc($proveedores))
		$proveedores_list[$fila['id']]= $fila['Nombre'];
...

PHP On dynamic select box

by The Disintegrator, November 28, 2007 08:58

This is the one I use

A1494c6f53c6774959936726353b566f Talk
1
2
3
4
<?php
$username = (isset($_POST['username'])) ? $_POST['username'] : (isset($_SESSION['username'])) ? $_SESSION['username'] : 'Username';

...

PHP On <input value=''> func...

by Eineki, November 26, 2007 23:00

I prefer heredoc (http://ww...

5a00a3a98dcf6f9cd717440fd2b606e5 Talk
1
2
3
4
<?php
$username = (isset($_POST['username'])) ? $_POST['username'] : (isset($_SESSION['username'])) ? $_SESSION['username'] : 'Username';
?>
...

PHP On <input value=''> func...

by BetaDevil, November 25, 2007 16:50 Star_fullStar_fullStar_fullStar_fullStar_full
54cb150c98bc09e66324263887554a05 Talk
1
2
3
4
<?php
function has( var , default ) {
  if( isset( $_POST[var] )
...

PHP On <input value=''> func...

by slaskis, November 25, 2007 15:51 Star_fullStar_fullStar_full

Long time ago i coded any p...

Ad2ffc6b05fb4390643f36a258b86362 Talk
1
2
3
If you use this code, you can no longer insert those strings into a DB, unless you want corrupted data, or unless you manually unescape them before doing so.

A nicer approach is to wrap the strings in a class, like SecureString, and have methods like toHtml(), toSql(), getRaw(), etc.

PHP On making user html input secure

by Mike, November 21, 2007 13:19
Avatar Talk

PHP On FLAC -> Multiple File Ty...

by wegosublime, November 20, 2007 16:52

Thanks for that. The primar...

98ae5419a4fd2b739280c3ed7d6cdb3d Talk

PHP On Spanish date Function

by Felix, November 14, 2007 12:27
Avatar Talk

PHP On Crossversion constructors f...

by Hubert Roksor, November 11, 2007 02:41

Actually, I would use neith...

Ae0689b76b0fa370800323a71742c24f Talk

PHP On Crossversion constructors f...

by Fabrice Luraine, November 09, 2007 18:13 Star_full

I think the first one is pr...

7cc9ea102594dee24a8dd54c5b7b2c81 Talk
1
2
3
4
function random_password($length = 6)
{
  return substr( md5(microtime()),0, $length);
...

PHP On Random password

by Eineki, November 07, 2007 10:08 Star_fullStar_fullStar_fullStar_fullStar_full

I'm using this function for...

5a00a3a98dcf6f9cd717440fd2b606e5 Talk

PHP On Thumbnail generator

by tempouser.myopenid.com, November 07, 2007 09:33

@ Huber Roksor: its all loc...

Avatar Talk
1
2
3
4
<?php

if (preg_match('#^[a-z0-9]$#Di', $_GET['n']))
...

PHP On Resolving TinyURLS to the d...

by Hubert Roksor, November 06, 2007 18:25

Meir's solution looks good,...

Ae0689b76b0fa370800323a71742c24f Talk