The sync script needs to include the index.php file as well.