Jump to content

Require() With Request Variables?


Twango

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...