2009-07-31 80 views
-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"); 
?> 
+0

可能重复的[无法打开流:没有这样的文件或目录](http://stackoverflow.com/questions/36577020/failed-to-open-stream-no-such-file-or-directory) – 2016-09-10 11:08:05

回答

4

该消息是不是一个邮件错误。 PHP无法打开文件ask_us.php。如果ask_us.php是您的文件,请检查其权限(以及父文件夹的权限)。

相关问题