newbie has a question
From: nome (nome_at_poczta.wp.pl)
Date: 02/28/05
- Next message: liquidice: "Server time"
- Previous message: CyberDog: "Queryes"
- Next in thread: Philip Ronan: "Re: newbie has a question"
- Reply: Philip Ronan: "Re: newbie has a question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Feb 2005 12:04:10 +0100
hi,
i'm really beginner in php programming so please give me an advice. is the
script safe or not?
<?php
$path = "directory/";
$extension = ".htm";
if ( preg_match("#^[a-z0-9_]+$#i",$page) ){
$id = $path.$page.$extension;
include($id);
}
echo"
<HTML><BODY>$id</BODY></HTML>";
?>
best regards
nome
- Next message: liquidice: "Server time"
- Previous message: CyberDog: "Queryes"
- Next in thread: Philip Ronan: "Re: newbie has a question"
- Reply: Philip Ronan: "Re: newbie has a question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]