ebookx10
New Member
- Messages
- 7
- Reaction score
- 0
- Points
- 1
I have just registered a new website on your service and then read your Terms. I attend that there are 3 languages are allowed
But does it mean that all files in my site can not contain any character of the languages that is not allowed?
Moreover, how do I handle and prevent my website user from post message, comment, ... that is in blocked language.
For example:
File: check.php
So, in check.php file, it contains a blocked language characters. Does it allow?
I'm new at web developers. Thanks
But does it mean that all files in my site can not contain any character of the languages that is not allowed?
Moreover, how do I handle and prevent my website user from post message, comment, ... that is in blocked language.
For example:
File: check.php
PHP:
//pseudo code
function is_not_acceptable_character( $char ){
$str = "The string contains characters that is not allowed";
foreach ($s as $str)
if ($s == $char)
return true;
return false;
}
function checkString( $userMessage ){
foreach ($character as $userMessage)
if is_not_acceptable_character($character)
ignore_or_translate();
save_to_database(); //etc...
}
I'm new at web developers. Thanks