Getting Apache Constants with PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ast3r3x@gmail.com

    #1

    Getting Apache Constants with PHP

    I'm working on implementing a secure cookie protocol I've been reading
    about, but I've run into a problem. I was hoping some smarter people
    than myself here could help me. I need to access an apache constant
    (set when using mod_ssl) through PHP, or Perl (but I'd have to get it
    back into PHP). Does anyone know how to do this?

    I was wondering if you could do something like set a PHP variable from
    Apache. It looks like they are doing something like that
    http://us3.php.net/configuration.changes when they are setting php
    initiation values. That means they talk at least one way, I was hoping
    there was a way to send more information. If anyone has any ideas it
    would be greatly appreciated, I figure there should be a way to, but I
    am not sure exactly how you'd do it.

    Thanks in advance!

  • ast3r3x@gmail.com

    #2
    Re: Getting Apache Constants with PHP

    You can't access them directly with PHP, however using .htaccess, and
    a little creative regular expressions, you can get it into PHP.

    Comment

    Working...