reenadak

check if directory exisits

Sep 25th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. // Check if install.php is present
  2. if(is_dir('install'))
  3. {
  4.         header("Location: install/install.php");
  5. }
  6.  else
  7.  {
  8. // Normal page rendering of index.php
  9. }
Add Comment
Please, Sign In to add comment