Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7560553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:56:00+00:00 2026-05-30T12:56:00+00:00

I am trying to use PHP’s built-in function get_browser() . I followed the instructions

  • 0

I am trying to use PHP’s built-in function get_browser(). I followed the instructions in this useful post, but I’m still getting the error

browscap ini directive not set.

I downloaded the php_browscap.ini file and moved it into the same directory as my .htaccess file, so that its location is home/hostname/subdomain/php_browscap.ini Since I do not have access to my php.ini file, I am trying to edit the browscap property using .htaccess. This is what I entered:

php_value browscap home/hostname/subdomain/php_browscap.ini

I don’t know if it matters, but below that there’s some Rewrite Engine code.

As forementioned, I am still getting the error above. What did I do wrong?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:56:01+00:00Added an answer on May 30, 2026 at 12:56 pm

    Do a phpinfo() to understand your PHP runtime config. If your system is configure as "CGI/FastCGI" then it is probably running suPHP as the PHP initiator. In this case you can specify your own php.ini file. By default suPHP looks in the script directory but you can override this by the following directive in your .htaccess file:

    suPHP_ConfigPath (expects a path name)
    

    This option tells mod_suphp which path to pass on to the PHP-interpreter (by setting the PHPRC environment variable). Do NOT refer to a file but to the directory the file resists in.

    E.g.: If you want to use "/path/to/server/config/php.ini", use "suPHP_Config/path/to/server/config".

    If you don’t use this option, PHP will use its compiled in default path.

    Also you must use a properly formed path in your browsercap directive e.g.

    browscap="/home/hostname/subdomain/php_browscap.ini"
    

    (Note the leading /)

    Addendum

    I’ve just check and the Dreamhost shared hosting plan uses suEXEC. With suEXEC you can normally override the php.ini patch by copying the system php.ini (phpinfo() tells you where to find this) into a private directory, say _private as well as the browsercap.ini then adding

    SetEnv PHPRC /home/hostname/_private
    

    to your .htaccess file. If this doesn’t work then the issue is specific to Dreamhost’s suEXEC config and you need to ask this Q on http://discussion.dreamhost.com/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use php's mail() function but keep getting an error. I've installed
I'm trying to use this php thumbnail generator http://phpthumb.gxdlabs.com/ and i keep getting the
I'm trying to use php tag in a javascript function. But unfortunately its not
I'm getting this error message trying to use PHP Mailer. Please let me know
I don't use php or mysql but I am trying to upgrade a phpbb
I'm trying to use PHP to create a file, but it isn't working. I
why does this script show empty alert box. I am trying to use php
I'm trying to use the PHP json_encode function to encode some JSON to send
I'm trying to use a PHP Class in conjunction with javascript, but I need
Im trying to use PHP mail on my local computer, but its just not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.