-
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home2/thomas/public_html/bebo.php on line 3
Warning: file_get_contents(http://.bebo.com) [function.file-get-contents]: failed to open stream: Permission denied in /home2/thomas/public_html/bebo.php on line 3
-
Try again, I accidentally edited the bebo.php file.
EDIT
I made it so you can now just put the Bebo name in
PHP Code:
<?php
function BeboPicture($memberid){
$data = file_get_contents("http://".$memberid.".bebo.com");
$profileidstart = explode('<a href=/Profile.jsp?MemberId=', $data);
$profileidend = explode(' class=profile_tab_active', $profileidstart[1]);
$profileid = trim($profileidend[0]);
$imagestart = explode('<a href=PhotoAlbums.jsp?ProfilePhoto=Y&MemberId='.$profileid.'><img src=', $data);
$imageend = explode(' border=0', $imagestart[1]);
$image = trim($imageend[0]);
return $image;
}
?>
Used like:
PHP Code:
<?php
include('bebo.php');
echo '<img src="' . BeboPicture('Skulduggerybook') . '">';
?>