在mac电脑上使用的是自带的Apache和php,能运行,在使用require_once()命令时报错。
报错代码如下:
PHP Warning: require_once(/Users/yp/Sites/test): failed to open stream: Inappropriate ioctl for device in - on line 2 PHP Fatal error: require_once(): Failed opening required './Users/yp/Sites/test' (include_path='.:/usr/local/pear/share/pear:/usr/lib/php/pear') in - on line 2