Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HTTP athentication problem with PHP

Discussion in 'Workarounds and Optimization' started by morteza3245, Mar 10, 2017.

  1. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    129
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello

    I want to use HTTP athentication in php but $_SERVER['PHP_AUTH_USER'] is always empty.
    I found this is because of the apache and fast cgi and found a solution for apache with htaccess in this link PHP: HTTP authentication with PHP - Manual

    But still not working, I put sample code from php.net and still not working here is the sample code link
    - Removed -
    cheers.
     
    #1 morteza3245, Mar 10, 2017
    Last edited by a moderator: Mar 10, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I've moved this thread over to our "Workarounds and Customizations" forum. However. you're likely to receive more feedback about PHP coding questions on websites such as StackOverflow.

    Thank you.
     
  3. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    129
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    i did, but they have not any reply also
    if anybody can help , ill Thanks.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page