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

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -