Advertisement
caiiiok254

router.php

Mar 10th, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. <?php
  2. if (preg_match('/^(.*)$/', $_SERVER["REQUEST_URI"])) {
  3. include "./www/index.php"; // serve the requested resource as-is.
  4. } else {
  5. echo "<p>Welcome to PHP</p>";
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement