url_to_absolute query
<p>right, i am building a web crawler and there is a section of my code which translates to absolute urls instead of /macbookpro/ to <a href="http://www.apple.com/macbookpro" rel="nofollow">http://www.apple.com/macbookpro</a>. but when i echo my code, it only prints one result, which is the first link it sees why. Do i have to create an array, because when i did, i echoed the array and listed was the word 'Array'</p>

<pre><code>   &lt;?php
require_once('simplehtmldom_1_5/simple_html_dom.php');
require_once('url_to_absolute/url_to_absolute.php');

          $URL = 'http://www.theqlick.com'; // change it for urls to grab  
// grabs the urls from URL 
          $file  = file_get_html($URL);
           foreach ($file-&gt;find('a') as $theelement) {
          $links = url_to_absolute($URL, $theelement-&gt;href);
        } 
  echo $links;
    ?&gt;
</code></pre>
