This looks like just what I need, I put the script in my admin directory and launched it, got a whole mess of errors.. I was afraid to run it after seeing all this.. The root path looks good, since I am running from 4images\admin I assume the default path goes one level below admin? Here are the error messages below, I am sure it is something I am overlooking, I am not real talented with the ways of PHP.
Warning: main(./config.php) [function.main]: failed to create stream: No such file or directory in C:\Inetpub\wwwroot\geeklog\public_html\4images\admin\install_categoriessort.php on line 4
Warning: main() [function.main]: Failed opening './config.php' for inclusion (include_path='.;c:\php4\pear') in C:\Inetpub\wwwroot\geeklog\public_html\4images\admin\install_categoriessort.php on line 4
Warning: main(./global.php) [function.main]: failed to create stream: No such file or directory in C:\Inetpub\wwwroot\geeklog\public_html\4images\admin\install_categoriessort.php on line 5
Warning: main() [function.main]: Failed opening './global.php' for inclusion (include_path='.;c:\php4\pear') in C:\Inetpub\wwwroot\geeklog\public_html\4images\admin\install_categoriessort.php on line 5