Hi, I was woundering how does mediawiki work with ../index.php/something. How can i get my php to read stuff from the blue bit i've coloured😕
$_SERVER['REQUEST_URI'] and some regular expression magic is the usual way.
I've got another question: How can you get PHP to execute some code in a varible. Like using include, but with a varible
[man]eval[/man]
The general rule of thumb with eval() is that if you find you're using it for a website (and not some PHP-driven application), there's probably a better way of doing what you're doing without using eval().