我写了一小段用于发送邮件的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) 我正在尝试使用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时相同