sabah. Benim yerel sunucuda bulunan bir dosyanın dışında php kod tüm kesimlerini almak isteyen duyuyorum. Sorun i php hataları sadece tarayıcı hataları, her yerde alma gibi görünüyor dont.
$file_contents = "<xmp>".file_get_contents("../www.cms.actwebdesigns.co.uk2/pageIncludes/instalation/selectMainPages.php")."</xmp>";
if(preg_match_all("#<\?php((?!\?>).)*#is", $file_contents, $matches))
{
foreach($matches[0] as $phpCode)
{
$code = "<xmp>".$phpCode."\n?></xmp>";
}
}
echo "dsds";
?>
Birisi bana doğru yönde işaret misiniz?