Hi Scott!

2015-07-25 19:42 GMT+02:00 Scott Arciszewski <sc...@paragonie.com>:
> What's easier to read and less likely to result in bugs?
>
> require_once __DIR__ . '/../../../../autoload.php';
>
> or
>
> require_once dirname(__FILE__, 5) . '/autoload.php';
That's on everyone's own, but for me it's the first. However, it
couldn't be a disaster having ability to choose other option for
those, who are not familiar with relative paths. :-)


Best regards,
Kubo2, Jakub Kubíček

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to