Click to See Complete Forum and Search --> : any reasons you can think of the chdir() would not work ?


Mutilated1
November 15th, 2004, 02:09 PM
Is there any reason you can think of that chdir($start); would crash my script ? I'm certain that $start is the right value, and I've used the identical code in another script.

Viper_SB
November 16th, 2004, 12:36 AM
what do you mean by crash? does PHP crash? or do you get a parse error? or another error? paste the exact error you're getting.
also try print $start; to make sure you are getting what you're expecting

Mutilated1
November 16th, 2004, 09:03 AM
OK, I figured out that it wasn't actually the chdir() that was crashing the script, it was that I forgot to chdir() back to the original directory before I went to the next part.

Nevermind, I've got it figured out now.

Thanks for the help.