jQuery AJAX return isn't returning PHP data?

jQuery AJAX return isn't returning PHP data?

I got my index page:

  1. <html>
  2.     <head>
  3.         <title>YTBypass</title>
  4.         <script type="text/javascript" src="jquery.js"></script>
  5.         <script type="text/javascript">
  6.             $(document).ready(function(){
  7.                 requestPage();
  8.                 
  9.                 $('a[href]').click(function( e ){
  10.                     e.preventDefault();
  11.                     
  12.                     
  13.                     url = $(this).attr('href');
  14.                     url = (url == '/') ? 'http://www.youtube.com' : url;
  15.                     
  16.                     requestPage(url);
  17.                 });
  18.                 
  19.                 function requestPage(pageURL){
  20.                     $('#loading').show(1500);
  21.                     
  22.                     //request page
  23.                     $.ajax({
  24.                         url: 'getpage.php?page='+ pageURL
  25.                     }).done(function( retrn ){
  26.                         $('#loading').hide(0);
  27.                         
  28.                         if(retrn == 'fail'){
  29.                             alert('Failed to request page.');
  30.                         }else{
  31.                             alert(retrn);
  32.                             $('#content').html(retrn);
  33.                         }
  34.                     });
  35.                 }
  36.             });
  37.         </script>
  38.     </head>
  39.     <body>
  40.         <div id="loading" style="display:none;">
  41.             <b><font size="4">Your request is loading...</font></b>
  42.         </div>
  43.         <div id="content">
  44.             
  45.         </div>
  46.     </body>
  47. </html>

As you can see, it calls this page upon loading:

  1. <?php

  2. $url = (!isset($_GET['page']) || empty($_GET['page'])) ? 'http://www.youtube.com' : $_GET['page'];

  3. //initiate
  4. $ch = curl_init();

  5. //set cURL data
  6. curl_setopt($ch, CURLOPT_URL, $url);
  7. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

  8. //execute & close
  9. $page = curl_exec($ch);
  10. curl_close($ch);

  11. echo $page;
  12. ?>
  13. applesauce

But for some reason, it doesn't seem to grab the data from the $page variable that the PHP code echoes out. It only returns applesauce.