wp_check_php_mysql_versions [ WordPress Function ]
wp_check_php_mysql_versions ( No parameters )
| Access: |
|
| Defined at: |
|
Soorgelijke functies: 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 ]
Top Google zoekresultaten
- 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 - #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 - PHPXRef 0.7 : WordPress : Detail view of load.php
wp_check_php_mysql_versions() wp_favicon_request() wp_maintenance() timer_start() timer_stop() wp_debug_mode() wp_set_lang_dir() require_wp_db() ...
phpxref.ftwr.co.uk