-1
我试图使用PHP邮件发送电子邮件。我得到以下错误:PHP邮件错误...未能打开流:权限被拒绝
警告:未知:未能打开流:权限被拒绝未知在线0
致命错误:未知:失败需要开放“/home/webtest/help/ask_us.php” (include_path中= ':在/ usr /共享/ PHP的:在/ usr /共享/梨')在未知在线0
PHP代码如下:
<?php
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail("[email protected]", "Subject header",
$message, "From: $email");
header("Location: http://www.google.com");
?>
可能重复的[无法打开流:没有这样的文件或目录](http://stackoverflow.com/questions/36577020/failed-to-open-stream-no-such-file-or-directory) – 2016-09-10 11:08:05