Try prepending
$_SERVER['DOCUMENT_ROOT']
to your paths where file manipulation is implied. For example, refer to images with
$uploaddir = $_SERVER['DOCUMENT_ROOT'] . "/beta/images/";
. Now, for my "voodoo" statement as I'm too lazy to research this 😃. It seems like PHP can use relative paths for some functions, but requires absolute paths for others. For example, perhaps, because PHP knows when you are using a require statement, PHP can prepend the document root on its own, because PHP understands you are including a file in the virtual server root context. However, PHP wants a "solid" absolute path for file manipulation (I could have researched this out in the time it took for me to write this.) Nonetheless, get used to the idea that a webserver virtual root and the filesystem root are not the same. For example, for domain.com, I should be able to show imagex via html <img src="/imagex">. That path is relative to the virtual root for domain.com. However, in the file system, the absolute path might be /var/www/domain/imagex.