Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    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

  2. #12
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    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') . '">';
    ?>
    Last edited by ZAG; 17-02-2007 at 04:04 PM.

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •