Under WIN32, I wonder why PHP4 is always faulty when processing absolute paths. These settings are concentrated on extension_dir, upload_tmp_dir, and session. save_path. No matter how you set them, I set them to./, so I can do it.
But the problem comes again. Session. save_path: The Path corresponds to the currently executed PHP file. Therefore, when you use SESSION, if you change to another directory, this SESSION will no longer exist.
Of course, these do not exist in LINUX. Because/tmp can be used in LINUX.
So I think we can solve this problem with this brother. First, check your PHP. INI content. Change session. save_path ./. Then, your program has some problems. I added some comments. You can try again.
<? Php
Session_register ("abc"); // assign values to the variables before executing some functions.
$ Abc = "abcdefg"; // this sentence should be put in front.
Header ("Location: go. php ");
?>
//////////////////////////////////////// //
// Go. php
<? Php
Session_register ("abc"); // This sentence is not required.
Echo "you are". $ abc ."";
?>