wp_check_php_mysql_versions [ WordPress Function ]
wp_check_php_mysql_versions ( No parameters )
| Access: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_check_mysql_version, wp_check_browser_version, wp_kses_version, wp_check_password, wp_get_post_revisions
Check for the required PHP version, and the MySQL extension or a database drop-in.
Dies if requirements are not met.
Source
<?php
function wp_check_php_mysql_versions() {
global $required_php_version, $wp_version;
$php_version = phpversion();
if ( version_compare( $required_php_version, $php_version, '>' ) ) {
wp_load_translations_early();
wp_die( sprintf( __( 'Your server is running PHP version %1$s but WordPress %2$s requires at least %3$s.' ), $php_version, $wp_version, $required_php_version ) );
}
if ( ! extension_loaded( 'mysql' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
wp_load_translations_early();
wp_die( __( 'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.' ) );
}
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- wp_check_php_mysql_versions (WordPress Function) - WPSeek.com
WordPress lookup for wp_check_php_mysql_versions, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme ...
wpseek.com - wp_check_php_mysql_versions() WordPress function reference ...
Check for the required PHP version, and the MySQL extension or a database drop-in.
queryposts.com - wp_check_php_mysql_versions
Function and Method Cross Reference. wp_check_php_mysql_versions(). Defined at: /wp-includes/load.php -> line 95. Referenced 3 times: /wp-settings. php ...
phpxref.ftwr.co.uk - #17934 (Gracefully degrade for PHP4) – WordPress Trac
Looks like install.php, setup-config.php, and wp-load.php (possibly other locations) need to call wp_check_php_mysql_versions() before including any file ...
core.trac.wordpress.org