Call to undefined function mysql_connect() After upgrading PHP 7.1 to 7.3

I mean your php.ini is changed, check for the entry extension=php_mysqll.dll. (If you has no knowledge where is your used php.ini – see https://stackoverflow.com/questions/8684609/dude-wheres-my-php-ini) Is this entry active, has no ; before the string. After change of the php.ini you need a restart of mysql, like sudo /etc/init.d/mysql restart. Also a note, check that mysql … Read more

How to redirect a link to a new link?

Go with the easiest alternative of all: do nothing. No, really: WordPress itself handles redirects for renamed Post Titles. Edit Apparently, the retention of _wp_old_slug only happens for non-hierarchical objects. So, since Pages are hierarchical, they don’t get to enjoy the auto-magic slug redirection. Therefore, for static Pages or other hierarchical post objects, I would … Read more

“Database Connection Error” upon install in Apache VirtualHost document root.. Why did this happen? [closed]

You need to set these too: define(‘AUTH_KEY’, ‘put your unique phrase here’); define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’); define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’); define(‘NONCE_KEY’, ‘put your unique phrase here’); define(‘AUTH_SALT’, ‘put your unique phrase here’); define(‘SECURE_AUTH_SALT’, ‘put your unique phrase here’); define(‘LOGGED_IN_SALT’, ‘put your unique phrase here’); define(‘NONCE_SALT’, ‘put your unique phrase here’); Please … Read more

Detect CURLOPT_SSL_VERIFYPEER programatically?

From a stackoverflow response: CURLOPT_SSL_VERIFYPEER checks that the remote certificate is valid, i.e. that you trust that it was issued by a CA you trust and that it’s genuine. CURLOPT_SSL_VERIFYHOST checks that the cert was issued to the entity you wanted to talk to. To compare it to a real-life scenario, VERIFYPEER is like checking … Read more