How to check if a string starts with a specified string?

PHP 8 or newer: Use the str_starts_with function: PHP 7 or older: Use the substr function to return a part of a string. If you’re trying to make sure it’s not another protocol. I’d use http:// instead, since https would also match, and other things such as http-protocol.com. And in general:

Where to get php_mcrypt.dll for PHP 7.2?

http://php.net/manual/en/migration71.deprecated.php The mcrypt extension has been abandonware for nearly a decade now, and was also fairly complex to use. It has therefore been deprecated in favour of OpenSSL, where it will be removed from the core and into PECL in PHP 7.2.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)