Re: What am I missing here?
| From: | Jay Ess | Date: | Mon, 28 Jun 2010 21:42:09 +0000 |
| Subject: | Re: What am I missing here? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306496@lists.php.net to get a copy of this message | ||
Rick Dwyer wrote:
Hello List. I am completely at a loss for why the line of code below returns the desired value: $PATH_INFO= substr($_SERVER['REQUEST_URI'],strlen($_SERVER['SCRI PT_NAME']), strlen($_SERVER['REQUEST_URI'])); BUT, putting the same line of code on 1 line fails to return anything: $PATH_INFO= substr($_SERVER['REQUEST_URI'],strlen($_SERVER['SCRIPT_NAME']), strlen($_SERVER['REQUEST_URI'])); strlen counts the newline so probably should you put a +1.