- <?php
-
-
-
-
-
-
- function get_crlf()
- {
-
- if (stristr($_SERVER['HTTP_USER_AGENT'], 'Win')){
- $the_crlf = '\r\n';
- }elseif (stristr($_SERVER['HTTP_USER_AGENT'], 'Mac')){
- $the_crlf = '\r';
- }else{
- $the_crlf = '\n';
- }
-
- return $the_crlf;
- }
-
- echo DIRECTORY_SEPARATOR;
- echo PHP_SHLIB_SUFFIX;
- echo PATH_SEPARATOR;
-
-
- echo DIRECTORY_SEPARATOR;
- echo PHP_SHLIB_SUFFIX;
- echo PATH_SEPARATOR;
- define('DS', DIRECTORY_SEPARATOR);
- define('PS', PATH_SEPARATOR);
- ?>
-
if ( strtoupper ( substr (PHP_OS, 0, 3)) === 'WIN' ) { 得到操作系统类型
DEFAULT_INCLUDE_PATH 得到php.ini中配置的include_path
$text = str_replace(array("\n", "\r", "\r\n"), "", $text);