more changes to php that work but no connection due to other issues;