I want to replace every "../" and "script/uploaded" in my string variable to "" !
I have one function like this :
public function mypregReplace($v)
{
return preg_replace(
array("%script/uploaded%" , ""),
array( "[\.\./]" , ""),
$v);
}
but it showa me this error
preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in
what`s wrong on my pattern?!