Passing GET vars

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
[n00b]
Forum Commoner
Posts: 34
Joined: Sat Mar 20, 2004 7:06 pm

Passing GET vars

Post 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)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

are you sure $file is trying to access the get vars through $_GET? because they should be available..
Post Reply