NoodleOfDeath NoodleOfDeath - 1 year ago 135
PHP Question

PHP Require and Include GET

I would like to require a file but also pass GET variables through the url, but when I write:


I get a fatal error. How would I accomplish this functionality in a different way, such that I don't get a fatal error?

Answer Source

variables will be available as normal you do not have to pass like this.


$name will be available in myfile.php

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download