这对我有用:
curl -I http://websitename.com
其中显示如此类似的结果,包括PHP版本:
HTTP/1.1 200 OK
Date: Thu, 13 Feb 2014 03:40:38 GMT
Server: Apache
X-Powered-By: PHP/5.4.19
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Cache-Control: no-cache
Pragma: no-cache
Set-Cookie: 7b79f6f1623da03a40d003a755f75b3f=87280696a01afebb062b319cacd3a6a9; path=/
Content-Type: text/html; charset=utf-8
请注意,如果您收到以下消息:
HTTP/1.1 301 Moved Permanently
您可能需要卷曲网站的www版本,而不是:
curl -I http://www.websitename.com