Greatest common denominator from the input

This PHP programme returns the greatest common denominator from the input.

By |PHP Source Code|0 Comments

Search the LDAP Directory.

Search the LDAP Directory.

By |PHP Source Code|0 Comments

OS stats in PHP

Shows the OS statistics and information about OS.

By |PHP Source Code|0 Comments

Show all fields of a table in PHP

This programme shows all the fields in a table of a database in MySQL.

By |PHP Source Code|0 Comments

Execute queries in Oracle with PHP

Execute queries in Oracle with PHP

By |PHP Source Code|0 Comments

Random numbers within a range in PHP

Random numbers within a range in PHP

By |PHP Source Code|0 Comments

Show the contents of an XML in PHP

Parses an XML file and show its contents on the page. By default is assumes example.xml file in the same direcory as the script is.
“);
break;
default:
//ignore other tags
}
}

function piHandler($parser, $target, $data)
{
if($target == “php”)
{
eval($data);
}
else
{
print(htmlentities($data));
}
}

function defaultHandler($parser, $data)
{
global $defaultText;

$defaultText .= $data;
}

function ndataHandler($parser, $name, $base, $systemID, $publicID,
$notation)
{
print(“\n”);
}

function notationHandler($parser, $name, $base, $systemID, $publicID)
{
print(“\n”);
}

function externalHandler($parser, $name, $base, $systemID, $publicID)
{
//here you could create […]

By |PHP Source Code|0 Comments

Manipulate XML in PHP

Manipulate XML in PHP”);
break;
default:
//ignore other tags
}
}
}

$p = new myParser;
$p->parse(“example.xml”);
?>

By |PHP Source Code|0 Comments