path - Can't access PHP file from another folder -
i trying access php file located in folder.
$path = $_server['document_root']; echo $path;
it's displaying: /applications/mamp/htdocs/mysqli
i trying redirect welcome_employer.php in folder "... mysqli/employers". how can this?
header('location:'.$path.'/employers/welcome_employer.php');
thanks
see: how make redirect in php?
in particular,
header('location:'.$path.'/employers/welcome_employer.php');
request interpreted, ultimately, browser. rather $path
need site's base url there.
Comments
Post a Comment