My php script seems not to be compatible with php 7
-
Hi,
It seems that a php function that is used by my wordpress installation doesn’t work, because it is not compatible with php 7.0. Can you help my make it compatible with the last php version?function dbconn() {
if (!@mysql_connect(DB_HOST, DB_USER, DB_PASSWORD)) die(“[” . mysql_errno() . “] dbconn: mysql_connect: ” . mysql_error());
mysql_select_db(DB_NAME) or die(“dbconn: mysql_select_db: ” . mysql_error());
mysql_query(“set names utf8”);
register_shutdown_function(“mysql_close”);
};The blog I need help with is: (visible only to logged in users)
-
This is a support forum for sites hosted here at WordPress.com.
There are 2 versions of WordPress one hosted at WordPress.com and one supported at WordPress.org.
Your site appears to be hosted elsewhere. If you are seeking help with anwordpress issue, check the support forums at WordPress.org –
https://wordpress.org/support/Or seek help from your webhost.
- The topic ‘My php script seems not to be compatible with php 7’ is closed to new replies.