ini - 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 ini.php

  1. <?php 
  2.  session_start();
  3.  
  4.  $host = 'localhost';
  5.  $user = 'root';
  6.  $pass = '';
  7.  $db = 'db_pwpb18';
  8.  
  9.  $mysqli = mysqli_connect($host, $user, $pass, $db) or die ('Tidak dapat koneksi ke Database/Database tidak ada');
  10.  
  11.  ?>
File Description
  • ini
  • PHP Code
  • 29 Oct-2019
  • 228 Bytes
You can Share it: