SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict Mastodont's Avatar
    Join Date
    Mar 2007
    Location
    Czech Republic
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Check if htaccess is enabled

    Is there a way how to check from PHP the usability of .htaccess?

    For example - how can I stop installation script in case of "AllowOverride None" in httpd.conf?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,187
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)

    php and apache

    I know of no way for PHP to get directive values directly from the httpd.conf file. But you should be able to test or wrap whatever is depending on a certain value with code that will display a message / exit the script. eg.

    if (! dependent_process_success) exit('insufficient Apache settings');


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •