|
Posted by Jerry Stuckle on 09/28/18 12:01
Sebastian Lisken wrote:
> Jerry Stuckle <jstucklex@attglobal.net> wrote:
>> It's very easy. Make every include absolute. You can find the path to
>> the server's document root via $_SERVER['DOCUMENT_ROOT']. Reference
>> every include from there and you'll be in much better shape.
>
> Thanks Jerry, I know this would be a solution. I did consider this near
> the end of my (admittedly very long) post and explained why I regard
> such a solution less than ideal. Could you think of another one not
> using the document root?
>
> Sebastian Lisken
>
>
Yes, I read that. But there isn't a better one.
You should *always* know where a file is relative to DOCUMENT_ROOT. And
it can be above the directory.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|