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...
1 2 3 4
<?php $flacpath = '/bin/flac'; ...
PHP On FLAC -> Multiple File Ty...
by yaleman,
November 28, 2007 22:14
I think what you need is a ...
1 2 3 4
<?php echo '<select name="options">'; foreach(array("option1", "option2", "option3") as $i){ ...
1 2 3 4
$proveedores = consulta("SELECT * FROM proveedores ORDER BY Nombre");
while ($fila = mysql_fetch_assoc($proveedores))
$proveedores_list[$fila['id']]= $fila['Nombre'];
...
1 2 3 4
<?php $username = (isset($_POST['username'])) ? $_POST['username'] : (isset($_SESSION['username'])) ? $_SESSION['username'] : 'Username'; ...
1 2 3 4
<?php $username = (isset($_POST['username'])) ? $_POST['username'] : (isset($_SESSION['username'])) ? $_SESSION['username'] : 'Username'; ?> ...
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 FLAC -> Multiple File Ty...
by wegosublime,
November 20, 2007 16:52
Thanks for that. The primar...
PHP On Crossversion constructors f...
by Hubert Roksor,
November 11, 2007 02:41
Actually, I would use neith...
PHP On Crossversion constructors f...
by Fabrice Luraine,
November 09, 2007 18:13
I think the first one is pr...
1 2 3 4
function random_password($length = 6)
{
return substr( md5(microtime()),0, $length);
...
PHP On Thumbnail generator
by tempouser.myopenid.com,
November 07, 2007 09:33
@ Huber Roksor: its all loc...
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,...


Is there any way I can clea...