PHP How to header-location to a page in a parent directory?

前端 未结 3 1429
不思量自难忘°
不思量自难忘° 2021-01-17 17:14

I have a first.php page with

header(\"Location: script/script1.php\")

and script1.php has another



        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-17 17:39

    You can do this. Redirects back to the Home directory (Root) in '0' seconds -

    
    

    Replace the 'Root_Dir' with your directory name.

提交回复
热议问题