Kodu aynı ise, arasında bir fark orada görünüyor:
include 'external.php';
ve
eval('?>' . file_get_contents('external.php') . '<?php');
Fark nedir? Bilen var mı?
I know the two are different because the include
works fine vethe eval
gives an error. When I originally asked the question, I wasn't sure whether it gave an error on all code or just on mine (vebecause the code was eval
ed, it was very hard to find out what the error meant). However, after having researched the answer, it turns out that whether or not you get the error does not depend on the code in the external.php
, but does depend on your php settings (short_open_tag to be precise).