Hi Folks
What is the diffrent between below two ?
require_once($_SERVER['DOCUMENT_ROOT'] . "/includes/session_validate.php");
require_once("/includes/session_validate.php");
Hi Folks
What is the diffrent between below two ?
require_once($_SERVER['DOCUMENT_ROOT'] . "/includes/session_validate.php");
require_once("/includes/session_validate.php");
If you run a simple test file like this what do you see?
echo $_SERVER['DOCUMENT_ROOT'] . "/includes/session_validate.php";
echo "/includes/session_validate.php";
/home4/xxxxx/public_html/visa/includes/session_validate.php
/includes/session_validate.php
Oh, previous one goes up to the root folder of our hosting while latter seems referring to the project / sub domain root
So which one i should go for? pros and cons i mean.
Well, only one of the two would actually WORK. So…
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.