1、PHP_BINARY:查看PHP执行exe文件路径
<?php
echo PHP_BINARY;
?>
E:PHPphp-7.1.3-Win32-VC14-x64php.exe
2、PHP_BINARY_READ:
<?php
echo PHP_BINARY_READ;
?>
PHP Notice: Use of undefined constant PHP_BINARY_READ - assumed 'PHP_BINARY_READ' in E:phpworkspacePHPstring.php on line 2
Notice: Use of undefined constant PHP_BINARY_READ - assumed 'PHP_BINARY_READ' in E:phpworkspacePHPstring.php on line 2
PHP_BINARY_READ
3、PHP_BINDIR:
<?php
echo PHP_BINDIR;
?>
C:php
4、PHP_CONFIG_FILE_PATH:
<?php
echo PHP_CONFIG_FILE_PATH;
?>
C:php
5、PHP_CONFIG_FILE_SCAN_DIR:
<?php
echo PHP_CONFIG_FILE_SCAN_DIR;
?>
6、PHP_DATADIR
<?php
echo PHP_DATADIR;
?>
C:php
7、PHP_DEBUG
<?php
echo PHP_DEBUG;
?>
0
8、PHP_EOL
<?php
echo PHP_EOL;
?>