Jump to content

mrj

Members
  • Posts

    303
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by mrj

  1. Thank you. Its worked :) . The last thing I want to know that which scripting is bulit in enabled and which are need to be enabled by requesting on tommy server. Like I had requested for java and asp and it was enabled for me. Do I need to request for perl, python, ruby and otherss? Thanks in advance.

  2. Thanks for your reply. Currently using PHP 5.6.3.0. Waiting for your reply. :)

     

    get_headers() also not working. Is it for target server restrictions or something? I tried fusionbd.com as $url and it was worked. Here is the code:

    <?php

    $url ="http://m.sumirbd.mobi";

    $get_contents = file_get_contents($url);

    $get_headers = array(get_headers($url));

    if ($get_contents) {

    echo "Get contents is working!";

    } else {

    echo "Get contents isn't working";

    }

    if ($get_headers) {

    //print_r($get_headers);

    } else {

    echo "Get headers isn't working";

    }

    ?>

    Output:

    Warning: file_get_contents(http://m.sumirbd.mobi): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/mrj/public_html/p.php on line 3

    Get contents isn't working

×
×
  • Create New...