David Thomas Baker » Examples » Viewing File: spider.php

<?php

include("class.myspace.php");
$MySpaceScraper = new myspace();

$myspace_id basename($_REQUEST['myspace_id']);

$details $MySpaceScraper -> get_details($myspace_id);

ob_start();
?>
<div class="vcard">
    <a class="fn nickname url" href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=<?=$details['user_id'];?>"><?=$details['name'];?></a>
    <div class="adr">
        <span class="locality"><?=$details['location'];?></span>,
        <div class="country-name"><?=$details['country'];?></div>
    </div>
</div>
<?
$html 
ob_get_clean();

?>
<table width="100%">
    <tr>
        <td>Data Returned From MySpace Spider:</td>
        <td>hCard Representation:</td>
    </tr>
    <tr>
        <td valign="top">
            <pre><? print_r($details); ?></pre>
        </td>
        <td valign="top">
            <pre><?=htmlspecialchars($html);?></pre>
        </td>
    </tr>
</table>