iis7_supports_permalinks [ WordPress Function ]
iis7_supports_permalinks ( No parameters )
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: post_permalink, get_post_permalink, the_permalink, get_permalink, the_permalink_rss
Check if IIS 7 supports pretty permalinks.
Source
<?php
function iis7_supports_permalinks() {
global $is_iis7;
$supports_permalinks = false;
if ( $is_iis7 ) {
/* First we check if the DOMDocument class exists. If it does not exist,
* which is the case for PHP 4.X, then we cannot easily update the xml configuration file,
* hence we just bail out and tell user that pretty permalinks cannot be used.
* This is not a big issue because PHP 4.X is going to be deprecated and for IIS it
* is recommended to use PHP 5.X NTS.
* Next we check if the URL Rewrite Module 1.1 is loaded and enabled for the web site. When
* URL Rewrite 1.1 is loaded it always sets a server variable called 'IIS_UrlRewriteModule'.
* Lastly we make sure that PHP is running via FastCGI. This is important because if it runs
* via ISAPI then pretty permalinks will not work.
*/
$supports_permalinks = class_exists('DOMDocument') && isset($_SERVER['IIS_UrlRewriteModule']) && ( php_sapi_name() == 'cgi-fcgi' );
}
return apply_filters('iis7_supports_permalinks', $supports_permalinks);
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- iis7_supports_permalinks Wordpress hook details -- Adam Brown ...
Detailed information about every action hook and filter used in WordPress. Makes Plugin API easier to use. Lists appearance, file location, and deprecation data ...
adambrown.info - WordPress › Support » Upgrade to 3.1 has failed and I'm stuck
Fatal error: Cannot redeclare iis7_supports_permalinks() (previously declared in /home/markhodg/public_html/wp-includes/functions.php:3476) in ...
wordpress.org - WordPress › Support » "Cannot redeclare iis7_supports_permalinks ...
Hi,. So I am trying to update my wp database for my sister's business website, as I was prompted to do so when I tried to log in to the dashboard. So I read how to ...
wordpress.org - iis7_supports_permalinks | A HitchHackers guide through WordPress
Feb 24, 2011 ... function iis7_supports_permalinks() { global $is_iis7; $supports_permalinks = false; if ( $is_iis7 ) { /* First we check if the DOMDocument class ...
hitchhackerguide.com