PHP Error
-
I am trying to use the following PHP validation script:
<?php if (!filter_var($value, FILTER_VALIDATE_URL)) { return false; } $scheme = parse_url($value, PHP_URL_SCHEME); if (empty($scheme)) { return false; } if ($scheme != 'http' && $scheme != 'https') { return false; } return true;
But I am getting each time an error T_STRING unexpected “http”.
https://www.ads-software.com/plugins/validated-field-for-acf/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PHP Error’ is closed to new replies.