boehseronkel
Neues Mitglied
Oh ^^ ich sehe gerade, das die if negiert ist !
nimm mal das ! vor dem preg_match weg !
nimm mal das ! vor dem preg_match weg !
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<?php
function rep($wert)
{
if(!(preg_match('/^[)\(\:\.\+\/\\\]+$/',$wert)))
{
$changes = array(':','/\/','/','.','+');
$wert = str_replace($changes,"_",$wert);
}
return $wert;
}
echo rep("hallo/");
?>
$ziel=rep($_GET[$name]);
if(!file_exists($ziel.'.php')){
include('news.php');
} else {
include($ziel.'.php');
}