Alrighty,
This is a multiple file upload script that used to work fine (and it worked fine last night on my home server -there were no changes made to the code before I noticed the error), the problem that I have is having it detect the folder that I know is a dir after the if(isset($POST['submit'])){ condition ie: is_dir($folderName), etc...
It references the $GET method for the dir variable when it is first loaded ($GET['dir']), and checks to see if the folder exists, it does
Once the form is submitted, however, php says the folder doesn't exist on the result page (that happens to be the same file, it just checks to see if the form has been submitted)...
The form itself passes the $GET['dir'] vairiable to the result page through the (<form action="") value...
But on the result page, it always says the folder doesn't exist even though it's exactly the same string as the original $_GET['dir'] value when the upload script is first loaded.
I've tried tweaking this script many times before submitting this to you all today...
*Note:
This script works fine on my home (wamp) server,
Doesn't work on the live server,
Used to work on the live server at some point last year, but I left the file alone since then and they updated the servers and software a few months back. They still use apache and php 4.x, could this change have something to do with it?
Here is the code:
Any and all help is greatly appreciated. Usually problems like this is just some obscure coding detail that I overlook, yet later trace and find... if this is the case, this problem is beyond the scope of my imagination... my hunch, however, is that this all has something to do with the methods used to upload files conflicting with seeing a existing folder, I may be completely wrong (I likely am, lol), but all in all, THANKS SO MUCH FOR YOUR ATTENTION, I'll check back later...