Re: Re:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 22, 2011 at 9:25 AM, Eric <eric_justin_allan@xxxxxxxxxx> wrote:

> Thanks Very much I used,
> preg_match('/[[:punct:]]/', $_POST['username']) !== 0
> and it works without errors. The reason I can't just use
> is_file which I wish I could is because windows doesn't allow question
> marks
> or some wierd character. It decides to not allow php to make the file if
> there
> are odd  ball characters. It is a very unfortunate mistake in my code that
> I
> wish php would ignore and just make the file "?".


To prevent possible future warnings and errors use:

if (isset($_POST['username']) && preg_match('/[[:punct:]]/',
$_POST['username']) !== 0)

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux