解决The connection was refused when attempting to contact localhost

 在zend studio运行php程序,出现"the connection was refused when attempting to contact localhost" ,解决办法如下:
1、Zend->File->Switch Workspace->other->选择apache默认网站目录(如E:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs)
解决The connection was refused when attempting to contact localhost_第1张图片
2、Zend->window->preferences,进入PHP->PHP Servers进行配置:
解决The connection was refused when attempting to contact localhost_第2张图片

3、Zend->window->preferences,进入PHP->general-> Web browser进行配置:


 解决The connection was refused when attempting to contact localhost_第3张图片


你可能感兴趣的:(PHP)