1
2
3
4
<?php
$std = fopen("php://stdin", "r");
echo "TICTACTOE\n\n\n\n";
...

PHP Command-Line TicTacToe

by techietim, March 24, 2008 00:00, 3 refactorings, tagged with php, game, tictactoe

Just wondering if there are...

441c4f02db55ef2cbe96027af7012e01 Talk

PHP On Eval encoded file decoder

by techietim, January 26, 2008 17:29

Is there an example script ...

441c4f02db55ef2cbe96027af7012e01 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
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
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

PHP On Message system IP-ban

by techietim, November 04, 2007 14:16 Star_fullStar_fullStar_full

1) You should using true an...

441c4f02db55ef2cbe96027af7012e01 Talk

PHP On FTPSocket

by techietim, October 20, 2007 14:10

That's pretty good. You sho...

441c4f02db55ef2cbe96027af7012e01 Talk
1
2
3
4
<?php
if(isset($_POST['asdasd'])){
foreach($_POST as $pname => $pvalue){
...

PHP On making user html input secure

by techietim, October 13, 2007 00:50

That cleans all of the $_PO...

441c4f02db55ef2cbe96027af7012e01 Talk
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 Star_fullStar_fullStar_fullStar_fullStar_full

Try this.

441c4f02db55ef2cbe96027af7012e01 Talk

PHP On PHP Get

by techietim, October 04, 2007 14:36

Check this out:
http://refa...

441c4f02db55ef2cbe96027af7012e01 Talk
1
2
3
4
<?
$page = $_GET['page'];
$pages = array("news", "about");
...

PHP On Content Page Include

by techietim, October 01, 2007 16:55 Star_fullStar_fullStar_full

This should work. I added t...

441c4f02db55ef2cbe96027af7012e01 Talk