Access request details when using Cloudflare workers

Preface: Cloudflare Worker does not have the function of ip and visit logs. So add it manually with another PHP server. 1. Using PHP to write logs <?php if ( isset ( $_GET [ "ip" ] ) && isset ( $_GET [ "region" ] ) && isset ( $_GET [ "path" ] ) ) { $ip = $_GET [ "ip" ] ; $region = $_GET [ "region" ] ; $path = $_GET [ "path" ] ; $time = date ( 'Y-m-d H:i:s' ) ; $filename = "log/" . date ( 'Ymd' ) . ".txt" ; echo $time . " IP:" . $ip . " Region:" . $region . " Path:" . $path ; $fp = fopen ( $filename , 'a' ) ; fwrite ( $fp , $time . " IP:" . $ip . " Region:" . $region . " Path:" . $path . "\r\n" ) ; fclose ( $fp ) ; } else { echo "Error" ; } ?...