Support » Plugin: PHP Everywhere » can I use $_GET ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alexander Fuchs


    Hi yellofish,

    are you sure your syntax is correct? $_GET is supported by the plugin.

    Best regards,

    Alexander Fuchs

    So should this work this way or do I have an error elsewhere?

    // URL:
    echo $_GET['sample'];

    That way I don’t get any output. I am also looking into add_query_arg

    BTW, the way I use out plugin, I have a php file in a subfolder below public_html that can’t be reached from the web and link it to my pages like that:

    $path = $_SERVER['DOCUMENT_ROOT'];
       $path .= "../../files/my_php_code.php";

    I just prefer to write on a large page 😉

    Plugin Author Alexander Fuchs


    The problem could be, that your hoster is blocking the usage of the $_GET variable in the Php eval() function.

    The syntax of your code should be correct.

    Mhm, no. I just tried it with a directory on that domain, but out of wordpress, and I can get the value echoed. So it’s not server related.

    I may go the REGEX way, I have only two strings I need.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘can I use $_GET ?’ is closed to new replies.