Hello! I'm running PHP 4.2.3 on a Linux web-hosting server. Right now I am trying to work with a PHP script (MLM Multi List Manager, in case it matters) to handle mailing lists. It works terrific on one server, but on another one it has a very strange problem that I was hoping someone would know how to solve. The script is running from a directory, let's call it "phproot". 1) The script first opens up a filename in "subdirectoryA," reads the contents, and closes the file. 2) Then the script does some business, opens ANOTHER file, this time in "subdirectoryB," makes some changes, and closes that file. (It does all this using variables. So, the script in the "phproot" directory does the first bit of business with "$folder1/$file1", then does the second bit of business with "$folder2/$file2".) So what's the problem? The problem is that when the script does the stuff in step 2, instead of just reading and writing the file in "subdirectoryB," it for some reason creates a new subdirectory UNDERNEATH "subdirectoryA"--so now the file I *wanted* to access remains untouched, and instead I have a brand-new directory, "phproot/subdirectoryA/subdirectoryB"! Why is this happening? It's like the script somehow got "stuck" in "subdirectoryA" and now treats it as the root directory from which the script is running. Is there some sort of php.ini setting that's wrong here, some environment setting that causes this weird behavior? Like I said, the script itself worked fine under another setup, so it's not a fundamental script flaw. Any ideas?
Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php