Troubleshooting of PHP errors: Difference between revisions

Jump to navigation Jump to search
m
Line 33: Line 33:


* 使用 [http://php.net/manual/en/function.phpinfo.php phpinfo]  確認「Configuration File」<ref>[http://www.commandlinefu.com/commands/view/818/phpinfo-from-the-command-line phpinfo from the command line | commandlinefu.com]</ref>: {{kbd | key = <nowiki>echo "<?php phpinfo(); ?>" | php | grep "Configuration File"</nowiki>}}
* 使用 [http://php.net/manual/en/function.phpinfo.php phpinfo]  確認「Configuration File」<ref>[http://www.commandlinefu.com/commands/view/818/phpinfo-from-the-command-line phpinfo from the command line | commandlinefu.com]</ref>: {{kbd | key = <nowiki>echo "<?php phpinfo(); ?>" | php | grep "Configuration File"</nowiki>}}
** 指定完整 php 路徑 command: {{kbd | key = <nowiki>echo "<?php phpinfo(); ?>" | /Applications/XAMPP/bin/php | grep "Configuration File"</nowiki>}}
** 指定完整 php 路徑 command:  
*** {{kbd | key = <nowiki>/Applications/XAMPP/bin/php -r 'echo phpinfo();' | grep "Configuration File"</nowiki>}}
*** 或 {{kbd | key = <nowiki>echo "<?php phpinfo(); ?>" | /Applications/XAMPP/bin/php | grep "Configuration File"</nowiki>}}
* {{kbd | key = <nowiki>php -i | grep "Configuration File"</nowiki>}}
* {{kbd | key = <nowiki>php -i | grep "Configuration File"</nowiki>}}


Navigation menu