|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Utf8 ereg
hi
i am creating files using utf8 chars such as Регистрация.php which is fine. However i need to ensure no illegal characters are used in the filename such as \*,$&; etc but since php is in ascii and utf8 can be interpreted as ascii I am getting problems when validating using eregi(). i am a bit perplexed! ta tbo |
|
#2
|
||||
|
||||
|
how about using something like :
$your_variable = preg_replace('/[^0-9a-z ]+/i', '', $your_variable); before...
__________________
When I die, I want to go peacefully like my Grandfather did, in his sleep -- not screaming, like the passengers in his car. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Utf8 ereg |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|