Jump to content

Require() With Request Variables?


Twango
 Share

Recommended Posts

the code require("attacklib.php?uta=" . $uta . "&lvl=" . $myudat['level'] . "&hgl=" . $myudat['gold']);is returning Warning: require(attacklib.php?uta=King Shadower&lvl=100&hgl=250) [function.require]: failed to open stream: No such file or directory in /home/appattac/public_html/aadimensions/attackmenu.php on line 19Fatal error: require() [function.require]: Failed opening required 'attacklib.php?uta=King Shadower&lvl=100&hgl=250' (include_path='.:/usr/lib/php:/usr/local/lib/php') in/home/appattac/public_html/aadimensions/attackmenu.php on line 19 help!

Link to comment
Share on other sites

Including a file is exactly the same as copying and pasting the code. The $_GET and $_POST variables will be available to the included file. Since it's not being called through the HTTP protocol, a query string is useless.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...