PHP client script running the upload of external segments