PHP Explode and Get_Url: Not Showing up the URL

Posted by elmaso on Stack Overflow See other posts from Stack Overflow or by elmaso
Published on 2010-04-01T19:56:30Z Indexed on 2010/04/01 20:23 UTC
Read the original article Hit count: 477

Filed under:
|
|

hello! its a little bit hard to understand.

in the header.php i have this code:

<?
$ID = $link;
$url = downloadLink($ID);
?>

I get the ID with this Variable $link --> 12345678 and with $url i get the full link from the functions.php

in the functions.php i have this snippet

function downloadlink ($d_id)
  {
    $res = @get_url ('' . 'http://www.example.com/' . $d_id . '/go.html');
    $re = explode ('<iframe', $res);
    $re = explode ('src="', $re[1]);
    $re = explode ('"', $re[1]);
    $url = $re[0];
    return $url;
  } 

and normally it prints the url out.. but, i cant understand the code..

© Stack Overflow or respective owner

Related posts about explode

Related posts about php