Tips and tricks

Flash Backup PHP Code snipped
Posted on November 25 2010 / in Freebies / 3 comments
function readXML($arg, $type)
{
$i=0;
$xml = simplexml_load_file($arg);
if($type=='main'){
foreach($xml->children() as $child) {
if($child->getName()=="item"){
echo "<h3>" . $child->title . "</h3>";
if($i==0)
readXML('http://localhost/wordpress/?mode=xml&xmlfile=rotator.php&page=1', 'images');
$i++;
}
}
}
if($type=='images'){
$aux = '';
foreach($xml->children() as $child)
{
if($child->getName()=="item")
{
$aux = $aux . '
';
}
}
$aux = $aux . '';
echo $aux;
}
}
readXML("http://localhost/wordpress/?mode=xml", "main");
You just need to input this in the alternate content.
Extend this as you wish.
Recent Comments
- admin on Disable Windows 11 Autoupdate
- Christina on Disable Windows 11 Autoupdate
- admin on Vimeo Thumbnail Generator
- Robert Moeck on Vimeo Thumbnail Generator
- Rainer on Vimeo Thumbnail Generator
Where in the code is this to be placed??
Thanks,
Tony
in the alternate content of swf object / static flash embed
it should be marked in html as
Alternative Comment
< p > alternative content < / p >