adjusted php linking
reordered php socket server
fixed comments