小编Roh*_*are的帖子

无法连接到PHP中的邮件服务器

我写了一小段用于发送邮件的PHP代码:

   <?php
    //define the receiver of the email
    $to = 'rohaanthakare@gmail.com';
    //define the subject of the email
    $subject = 'Hishob email';
    //define the message to be sent. Each line should be separated with \n
    $message = "Hello World!\n\nThis is my first mail.";
    //define the headers we want passed. Note that they are separated with \r\n
    $headers = "From: webmaster@example.com\r\nReply-To: webmaster@example.com";
    //send the email
    $mail_sent = mail( $to, $subject, $message, $headers );
    //if the message is sent successfully print "Mail sent". …
Run Code Online (Sandbox Code Playgroud)

php email

1
推荐指数
1
解决办法
2926
查看次数

虽然为索引页面工作,但在zend框架中找不到url

我正在尝试使用zend框架开发网站,所以我创建了一个index.php文件,我的所有请求都去了,c.reated两个控制器一个是IndexController,另一个是TestController

Class IndexController extends Zend_Controller_Action{
    public function indexAction(){
        echo "Index Index Jamla";
    }
    public function displayAction(){
        echo "Index Display Jamla";
    }
}
Run Code Online (Sandbox Code Playgroud)

现在,当我访问url http:// test / 它正确调用IndexController及其IndexAction函数但是当我访问url http:// test/index/index时, 它显示在此服务器上找不到消息url/index/index与我访问http:// test/test/index时相同

虽然http:// test /等同于http:// test/index/index

zend-framework

1
推荐指数
1
解决办法
2816
查看次数

标签 统计

email ×1

php ×1

zend-framework ×1