Welcome! Log In Create A New Profile

Advanced

Hide raw regular expression from $_SERVER['server_name']

Anonymous User
August 03, 2013 06:07PM
I am using a regular expression in a server_name:

server_name ~^(?!web2\.)(?<account>.+)\.mydomain\.com$;

In PHP, or any language for that matter, if I:

echo $_SERVER['server_name'];
//~^(?!web2\.)(?.+)\.mydomain\.com$

I get the raw regular expression back. Is it possible to mask this, and instead return the actual regular expression matchedaccount? I.E. foo.mydomain.com.
SubjectAuthorPosted

Hide raw regular expression from $_SERVER['server_name']

Anonymous UserAugust 03, 2013 06:07PM

Re: Hide raw regular expression from $_SERVER['server_name']

Jonathan MatthewsAugust 03, 2013 06:26PM

Re: Hide raw regular expression from $_SERVER['server_name']

Anonymous UserAugust 03, 2013 08:06PM

Re: Hide raw regular expression from $_SERVER['server_name']

Jonathan MatthewsAugust 04, 2013 05:16AM

Re: Hide raw regular expression from $_SERVER['server_name']

Igor SysoevAugust 04, 2013 05:34AM

Re: Hide raw regular expression from $_SERVER['server_name']

Anonymous UserAugust 04, 2013 05:39AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 5 on November 26, 2014
Record Number of Guests: 173 on November 26, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready