Monday, 15 July 2013

including from document root in PHP -



including from document root in PHP -

i've read in book way include paths root using $_server['document_root'].'subdirectory'. improve using '../php/db/connection.php'? difference?

it's not of thought have server-side executed files under document root. short whoops of misconfiguration may cost trade secrets or worse.

anyway, it's improve utilize "absolute" paths because referencing file may move around without need adjust paths.

php document-root

No comments:

Post a Comment