728x90 AdSpace

  • Latest News

    Education

    Sports

    Business

    Pictures

    check "Output line numbers" checkbox to output line numbers in the converted 
    code.




    if(isset($submit_button)){
         $html_out=stripslashes($php_code_input);
         if($line_number_input=='ON'){
              $line=strtok($html_out,"\n");
              $html_out='';
              $line_num=0;
              while($line){
                   $line_num++;
                   $html_out.="".$line_num." $line\n";
                   $line=strtok("\n");
              }
         }
         $html_out=str_replace('<','<',$html_out);
         $html_out=str_replace('>','>',$html_out);
         $html_out=str_replace("\t","     ",$html_out);
         $html_out=str_replace(' ',' ',$html_out);
         $html_out=str_replace("\n",'
    ',$html_out);
         echo $html_out;
    }
    ?>




    Output line 
    numbers



      

    You will see the converted code in the same box above.  To do 
    another conversion, just clear the box, Copy & Paste the code in the box above and hit "Convert 
    PHP to HTML" again.

    What the script does:

    The script simply replaces all the "<" to "<", ">" to ">", 
    tabs to 5 spaces, and spaces to 
    " "



    ?max-results=7">Games

    Video

    Movies

    Recent Videos

    Slider

    News

    Fashion

    Travel

    Music

    Games

    Random Post

    Scroll to Top custom blogger templates