Re[4]: [PHP] End slash, small problem.

From: Date: Sat, 03 Jan 2004 07:41:36 +0000
Subject: Re[4]: [PHP] End slash, small problem.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-173676@lists.php.net to get a copy of this message
Hi, Saturday, January 3, 2004, 4:50:44 PM, you wrote: C> You forgot to double slash the windows slash like: '\\' C> I would write that same functionality as follows: C> $sep = (PHP_OS == 'Windows')? '\\':'/'; C> if(substr($template_path,-1) == $sep)) $template_path .= $sep; Not in single quotes I thought ..could be wrong though :) -- regards, Tom

« previous php.general (#173676) next »