Right now my webhost only has a sever with the max php number of 5.2. I didn't realize this and coded entirely on Xamp with a 5.3.1 server. Is there any sort of php script or something that will allow me to run 5.3 code on a 5.2 server. One of the particular lines im having trouble with is this:
$files = array_diff( scandir( __DIR__ . '/data' ), array('.','..') );
require __DIR__ . '/views/view_index.php';
At about that line the php just doesn't read, and has issues. The view_index.php works on its own, but the line above doesn't seem to be working, since I need to pass that variable to read in some file names into a dropdown selector. Although, I have more problems, most of which will take a long time to solve. Is there any sort of script made to ease this process. I have been looking around and couldn't find any.