Programming > PHP

How to write correctly path in include function?

(1/1)

Randy:
Hello friends,

How to write correctly path in include function?

Clarke87:
nclude() uses the filesystem path. You can echo $_SERVER["DOCUMENT_ROOT"]; to see the path to your HTML directory.

amreek singh:
include(What is the root? . 'images/default.png');

Navigation

[0] Message Index

Go to full version