Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ページが表示されるたびにデータベースに追加するスクリプトがあります。ボットがデータベースに追加するスクリプト部分をトリガーしたくありません。基本的に、実際のユーザーのみをログに記録したい。
とにかく、ボットに PHP スクリプトのセクションを無視させるには?
ありがとう!
<?php if($range == 'arizona'): ?> <?php echo $image->county; ?> <?php endif; ?>
OK、このコードは機能しており、エコー出力は「arizona」です。
ここで、echo を使用して、最初の行の「arizon