[nycphp-talk] Best practices for combining paths?
Daniel Convissor
danielc at analysisandsolutions.com
Tue Mar 31 22:44:26 EDT 2009
Hi Paul:
On Mon, Mar 30, 2009 at 05:22:58PM -0400, Paul A Houle wrote:
>
> $url_base="http://somesite.com/system/controller";
> $path="object_type/verb.modifier/object_id";
> $url="{$url_base}/{$path}";
>
> note that this working correctly depends sensitively on how paths are
> used, for instance, if somebody puts a slash at the end of $url_base,
> you wind up with a double slash in the path.
This calls for comments in the code, documentation, coding standards and
training; a technical solution is inappropriate, in my eyes.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list