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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -