View Full Version : Strange problem

08-06-2012, 10:20 PM
i write code below


and the server return me this message

Fatal error: require() [function.require]: Failed opening required 'system.settings.php?oper=1'

i check the path and it's right path

but when i write the code without the "?oper=1" its working fine

i check my php.ini "register_globals On"

so wtf...?

08-06-2012, 11:03 PM
You can't pass a variable within "include" or "require".

Why do you need oper=1?

08-06-2012, 11:16 PM
hi actually u can pass it throw require() function i do it before..!!!,
and it's work fine

but when i make new installation on my computer so dost work

so i think it is in php.ini

08-06-2012, 11:55 PM
According to the documentation, you can use the URL fopen wrappers to allow get variables, but it seems only for remote files? I don't know if that makes sense, but I guess if the wrappers are active, it should work locally too?

But in general, no, you can't pass variables, with good reason... include/require open files, not access URLs.

08-07-2012, 12:49 AM
Try this: