Page 1 of 1

Passing GET vars

Posted: Fri Aug 13, 2004 4:30 pm
by [n00b]
Is it possible to pass GET vars into a file compiled in a buffer??
Its like this:

Code: Select all

ob_start();
    include $file;
    $buffer = ob_get_contents();
ob_end_clean();
$file is the php file to be compiled

The problem is that $file does not see GET vars of the page it is being compiled in (that is, on the page where the code I mentioned before, runs)

Posted: Fri Aug 13, 2004 5:32 pm
by feyd
are you sure $file is trying to access the get vars through $_GET? because they should be available..