Mailinglisten-Archive |
Hallo Liste
Ich habe folgendes dringende Problem. Auf dem Server PHP 3.0.9 (ohne
strip_tags() und auf meiner Entwicklungsmaschine keine Probleme, da höhere
Version.
Wie oder laesst sich strip_tags in den 2 Beispielen unten durch fgetss
ersetzen ?? Oder ist das so unmoeglich ??
Koennte man dann die php3_zlib.dll (kenne die LAMP Variante nicht!) irgend
auf dem Server raufkopieren und bei Bedarf in die Dateien einbinden??
--------snip-1-----------------------------------------
if ($title != "" and $message != "" and $link != "")
{
$title=htmlentities("$title");
$message=strip_tags("$message");
$message=htmlentities("$message");
$link=htmlspecialchars("$link");
$su = mysql_query("insert into links values('$title' , '$message' ,
'$link' , NOW(), '')");
$content = "<br><b>Blah: $link </b>";
} else {
$content = "<br><B><font color=\"red\">Blah</font></B>";
}
return $content;
}
-----------Snip-2------------------------------------------
if (! isset($error))
{
while(list($key,$data)=each($HTTP_POST_VARS))
{
$HTTP_POST_VARS[$key] = strip_tags($data);
$HTTP_POST_VARS[$key] = htmlentities($HTTP_POST_VARS[$key]);
$HTTP_POST_VARS[$key] = ereg_replace("'","\\'", $HTTP_POST_VARS[$key]);
}
$id=time();srand($id);$id += rand();
$ip_addy=getenv("REMOTE_ADDR");
$su = mysql_query("insert into wait values('$id',
'$HTTP_POST_VARS[ourl]',
'$HTTP_POST_VARS[title]' ,
'$HTTP_POST_VARS[message]' ,
'$HTTP_POST_VARS[link]' ,
'$HTTP_POST_VARS[category]' ,
'$ip_addy'
)") or die (mysql_error());
----------------Snap-------------------------------------------
Danke für die Hilfe
Christoph
______________________________________________
Christoph M. Schönian
www.kafkamedia.de
______________________________________________
php::bar PHP Wiki - Listenarchive