every time i run my script i recieve an error saying that when i call implode that I have bad arguments for it. below is the section from my script where i am calling implode.
// Pop off the last folder name and join the the just back together with a '/'
$tempPath = explode('/', $oldPath);
$tempPathArray = array_pop($tempPath);
$newPath = implode("/", $tempPathArray);
what I am trying to do is get the path of a folder and navigate to its parent folder by exploding the path popping off the end and joining it all back together with implode but i get the bad argument error all the time even though the script works. is it that i just need to put a @ in front of it because the error will come up no matter what.
Evan