简体   繁体   中英

Check url parameter in included php?

Do I understand correct that it is not possible to check an url parameter in an include php-file as below? Any work around?

main.php

<?php
include "included.php";
?>

included.php

<?php
if(isset($_GET["test"])){
    echo "ok";
}
?>

您应该能够检查include.php文件中的url参数

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM