PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$findme2 = 'visitshark';
$pos2 = strpos($website, $findme2);
if ($pos2 === true) {
echo "Links containing VisitShark are not permitted for security reasons. Please enter a valid website address.";
}
Any ideas why this one isnt working? Do I have to change the === if i'm checking for "true" instead of "false"?
$findme2 = 'visitshark';
$pos2 = strpos($website, $findme2);
if ($pos2 === true) {
echo "Links containing VisitShark are not permitted for security reasons. Please enter a valid website address.";
}
Any ideas why this one isnt working? Do I have to change the === if i'm checking for "true" instead of "false"?
This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE, such as 0 or "". Please read the section on Booleans for more information. Use the === operator for testing the return value of this function.