Announcement

Collapse
No announcement yet.

require ./global.php and .htaccess

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • require ./global.php and .htaccess

    i tried to add the require global.php in my non vB pages...but because the whole area (vB & non vB) is protected with .htaccess file...it can't call the global.php

    Why is that?

    is there a way around it ?

    Thanks

  • #2
    I've never had a problem require()'ing files under an .htaccess protection -- AFAIK, it's a direct system call to get the file. The OS doesn't know what .htaccess does.

    Comment


    • #3
      strange, because once i remove the line "require valid user" from the .htaccess file, and refresh the *.php file that requires the global.php, it works...when i add the line back and refresh it stops working.

      Comment

      Loading...
      Working...
      X