I have this code to change the page
require_once(basename(($_GET[''page'']!='''' ? $_GET[''page''] : ''home'') . ''.php''));
I would like it to get the files of a specific page type / inc / pages ...
I have this code to change the page
require_once(basename(($_GET[''page'']!='''' ? $_GET[''page''] : ''home'') . ''.php''));
I would like it to get the files of a specific page type / inc / pages ...
The problem is that you must be trying to access files and directories that the Web server does not see, especially for security reasons. If the default directory to deploy the files is /var/www
for example, only this directory down will be visible to the server. You will never be able to load anything from /inc/pages
, unless you move /inc/pages
to /var/www
.