note 40092 deleted from function.ctype-digit by nlopess
| From: | nlopess@php.net | Date: | Sat, 21 Feb 2004 12:42:41 +0000 |
| Subject: | note 40092 deleted from function.ctype-digit by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65486@lists.php.net to get a copy of this message | ||
Note Submitter: Ann
----
hiiiiiiii how r u?<?php
$username = $_SERVER['REMOTE_USER']; // using an authentication mechanisim
$homedir = "/home/$username";
if (!ereg('^[^./][^/]*$', $userfile))
die('bad filename'); //die, do not process
if (!ereg('^[^./][^/]*$', $username))
die('bad username'); //die, do not process
//etc...
?>