简单得多:
<?php if( strpos(file_get_contents("./uuids.txt"),$_GET['id']) !== false) { // do stuff }?>回应有关内存使用的评论:
<?php if( exec('grep '.escapeshellarg($_GET['id']).' ./uuids.txt')) { // do stuff }?>
简单得多:
<?php if( strpos(file_get_contents("./uuids.txt"),$_GET['id']) !== false) { // do stuff }?>回应有关内存使用的评论:
<?php if( exec('grep '.escapeshellarg($_GET['id']).' ./uuids.txt')) { // do stuff }?>