Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




is_lighttpd_before_150 [ WordPress Function ]

is_lighttpd_before_150 ( No parameters )
Returns:
  • (bool) Whether the server is running lighttpd < 1.5.0
Defined at:

Benzer Fonksiyonlar: is_allowed_http_origin


Is the server running earlier than 1.5.0 version of lighttpd?

Source


<?php
function is_lighttpd_before_150() {
    
$server_parts explode'/', isset( $_SERVER['SERVER_SOFTWARE'] )? $_SERVER['SERVER_SOFTWARE'] : '' );
    
$server_parts[1] = isset( $server_parts[1] )? $server_parts[1] : '';
    return  
'lighttpd' == $server_parts[0] && -== version_compare$server_parts[1], '1.5.0' );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics