You are here: Re: strpos - and multiple needles? « PHP Programming Language « IT news, forums, messages
Re: strpos - and multiple needles?

Posted by Iv�n S�nchez Ortega on 12/28/07 16:17

jodleren wrote:

> Windows based systems do not allow certain characters. I need to check
> for them, _even_ that my server can handle them, I still have to think
> of the user downloading a file etc....

Then, you do not want to check for the positions of the invalid characters
(as you said on your original post).

You want to run a preg_match (to detect) or preg_replace (to fix) on the
filename string.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация