01 - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of 01.php

  1. <?PHP
  2.  
  3. // first we need to stop the server from sending any headers at all. 
  4. ob_start();
  5.  
  6. readgzfile("test.html.gz"); // read the file and output directly to
  7. the browser
  8.                                       // non compressed data from the
  9. file
  10.  
  11. ob_end_flush(); // let the headers go// 
  12.  
  13. ?>
File Description
  • 01
  • PHP Code
  • 06 Sep-2022
  • 302 Bytes
You can Share it: