note 48433 deleted from function.preg-match by colder
| From: | colder@php.net | Date: | Mon, 18 Jun 2007 18:17:51 +0000 |
| Subject: | note 48433 deleted from function.preg-match by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127587@lists.php.net to get a copy of this message | ||
Note Submitter: carboffin at msn dot com
----
Heres just some quick code intended to be used in validating url vars or input strings.
<?php
if(preg_match("/^[a-z0-9]/i", $file)){
# Include or validate existance, etc.
}
?>