curl php script for nginx imageserver