require with $_GET parameters

From: Er Galv?o Abbott (galvao_at_galvao.eti.br)
Date: 10/03/04

  • Next message: Dicki Smits: "Re: why do this not create a database?"
    Date: 2 Oct 2004 15:42:04 -0700
    
    

    Greetings.

    I'm trying to do a require with get variables as below:

    require_once('admin/header.php?item=Users&oper=Add');

    So I can dynamically show the header as 'Add Users'.

    Require is failing as it would be considering the parameters as part
    of the filename.

    I've took a look at PHP's documentation and it states
    (http://us2.php.net/manual/en/function.include.php):

    quote:
    --------------------------------------------------------------------------------
    // Works.
    include 'http://www.example.com/file.php?foo=1&bar=2';
    --------------------------------------------------------------------------------

    So I've tried replacing require for include, but it's still failing.

    If I remove the parameters it works.

    Is this possible?

    Please someone help.

    TIA,
    __________________
    Er Galvão Abbott
    <? PHP ?> && #! Perl Programmer


  • Next message: Dicki Smits: "Re: why do this not create a database?"
  • Quantcast