求php从入门到精通源码 我要的是明日科技第2版的《php从入门到精通》此书光盘的源码,请发到,第1版的在网上很容易找到就别发了。如果你没有的话,那么可曾到过灰信网,“搜索随书光盘”,在那里下载过它的光盘资料呢?我要问的是,在灰信网,搜索随书光盘后,输入验证码,下载它提供的随书光盘,是否免费?如果你没有下载过,请不要随便回答。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我是照着书上面写的来打代码的,但怎么弄都不成功,所以需要原来的代码来看看能不能运行,这是我的问题:http://topic.csdn.net/u/20111118/11/74ebc998-db07-454f-8b12-4876e00430cf.html?29841,望有人可以给点代码或者... 把有问题的代码发上来我们来帮你解决.有的书如果旧了或者第一版有相当多的代码都是错误或者无法正常工作的。如果是入门到精通,那问题不会很难解决.代码post. <?phpclass IndexController extends Zend_Controller_Action{ public function indexAction() { //$frontController = Zend_Controller_Front::getInstance(); //$frontController->setBaseUrl('/mrzf/thanks'); $this->view->assign('title',$_SERVER["SERVER_NAME"].$this->_request->getBaseUrl()); //$this->view->assign('bod',$this->_request->getBaseUrl()); //$this->view->tit=''; //$this->view->bod=''; } public function loginAction() { //$this->view->assign('title','zend framework框架测试成功!'); //$this->_forward("success","Login"); $this->_redirect("/mrzf/public/Login/success"); }}?><?phpclass LoginController extends Zend_Controller_Action{ public function logAction() { /*$this->view->assign('title','欢迎界面'); if($this->_request->isPost()) { $username=$this->_request->getPost('username'); $password=$this->_request->getPost('password'); $auth=Zend_Auth::getInstance(); include '../application/class/AuthAdapter.php'; $authAdapter=new AuthAdapter(trim($username),trim($password)); $result=$auth->authenticate($authAdapter); if($result->isValid()) { $sessionNameSpace=new Zend_Session_Namespace('project'); $sessionNameSpace->username=$username; $sessionNameSpace->password=$password; $this->_redirect('/index/success'); } else { echo '用户名和密码错误!'; } }*/ //$this->view->assign('title','欢迎界面'); //echo 'hello world'; //$this->_redirect('http://'.$_SERVER["SERVER_NAME"].$this->_request->getBaseUrl().'/login/success'); $this->_forward("success","Login"); //$this->view->title=$_SERVER["SERVER_NAME"].$this->_request->getBaseUrl().'/login/success'; } public function successAction() { $username=$this->_request->getPost('username'); $password=$this->_request->getPost('password'); $this->view->assign('title',$username.'<br/>'.$password); echo 'hello zf'; //$this->_redirect("/index/login"); }}?>C:\AppServ\www\mrzf\application\views\scripts\index\index.phtml<html><head></head><body><div id="bodyDiv" align="center"><h1><?php echo $this->title;?></h1> <table bordercolor='green' border='1' cellspacing='0' cellpadding='4'> <form action="<?=$this->url(array("controller"=>"index","action"=>"login"),null,true);?>" method="POST"> <tr> <td>姓名</td> <td><input type="text" name="username" /></td> </tr> <tr> <td>密码</td> <td><input type="password" name="password" /></td> </tr> <tr> <td><input type="submit" name="submit" value="登录"/></td> </tr> </form> </table></div> </body></html>index/login.phtml<html><head></head><body><a href="#"><?php echo $this->title;?></a> </body></html>C:\AppServ\www\mrzf\application\views\scripts\login\success.phtml<font size='4' color='red'><?php echo $this->title;?></font>login\log.phtml<font size='3' color='red'><?php echo $this->title;?></font>C:\AppServ\www\mrzf\application\configs\application.ini[project]bootstrap.path="../application/Bootstrap.php"bootstrap.class="Bootstrap"phpSettings.display_errors=1phpSettings.date.timezone="Asia/GMT-8"resources.frontController.controllerDirectory="../application/controllers"resources.view.contentType = "text/html; charset=gbk"C:\AppServ\www\mrzf\application\Bootstrap.php<?phpclass Bootstrap extends Zend_Application_Bootstrap_Bootstrap{ public function __initAutoload() { $moduleAutoloader=new Zend_Application_Module_Autoloader(array('namespace'=>'','basePath'=>'../application')); return $moduleAutoloader; }}?>C:\AppServ\www\mrzf\public\index.php<?php set_include_path('../library'.PATH_SEPARATOR.get_include_path()); require_once 'Zend/Application.php'; $application=new Zend_Application('project','../application/configs/application.ini'); $application->bootstrap()->run();C:\AppServ\www\mrzf\public\.htaccessRewriteEngine onRewriteRule .* index.php我的代码其实也很简单,但弄来弄去就是不行,为什么zendframework的_forward方法能用而_redirect方法却不能用?老是出现'Invalid controller specified (error)' 我要的是明日科技第2版的《php从入门到精通》此书光盘的源码,请发到,第1版的在网上很容易找到就别发了。如果你没有的话,那么可曾到过灰信网,“搜索随书光盘”,在那里下载过它的光盘资料呢?我要问的是,在灰信网,搜索随书光盘后,输入验证码,下载它提供的随书光盘,是否免费?如果你没有下载过,请不要随便回答。以上我的问题,谁能帮忙呢?help me! 没弄过zend 所以 给你点资料http://blog.csdn.net/myhonghx/article/details/6326736http://topic.csdn.net/u/20090206/17/dc63dbee-0aa1-4fa5-afa9-4a741bad01b0.html 想学php 自己做了个节日快报网 的网站 www.ccsou.cn想学些PHP来对网站就行修改 求帮助 我也很想学PHP,看有机会没?最好有高人带我啊。 现在网上的资料都达不到zend framework1.8,可以说都过时了。我还是想弄到《PHP从入门到精通》的源码呀,求助! 我想学的zend framework版本是1.8的,但连与之相符的手册都找不到,看来只有转行,来学国产的thinkphp,或许可以学到一些知识吧,还有个speedphp,也正在考虑中...... zend framework的网站上几乎每个版本的手册都有.....http://framework.zend.com/manual/1.8/zh/那个什么thinkphp的手册.....http://thinkphp.cn/Manual.....我看了两眼,觉得压根不是一个档次的东西.... 有没有1.8chm格式的呀?说实在的,编程这东西有好些,都不难啊,所以个人以为,关键在于英文,就那么点破知识,中文的没有,我就没有办法了,对于我这种水平的,幸好有些他人博客可学习,否则光靠买书,学到的知识就更少的可怜了,而且都那么......,根本不值得炫耀呀!买书买回来的又有可能是所谓的垃圾书,电脑书最好还是非实体书的好呀,对于我这种层次的,有时候我就幻想着,什么知识书里都有,书真的很完美,哎,一言难尽,此条路真的十分无趣呀。 哪里有php基础教程? 用php 把XML数据导入mysql 诚聘网站PHP工程师 这段代码发送outlook邮件失败,哪儿错了呢?初学PHP,多多关照 麻烦php高手给偶帮个忙 【在线等】phpMyAdmin登录报错 如何得到MX记录的ip地址? 如果通过URL传递阵列的值??? 用phpmyadmin建表时最后有一个‘全文搜索’?这是什么意思啊? 关于php分页的一个问题 请教一下提交按钮的问题 高分请教将xml解析为map DOMDocument转simplexml的神奇问题 求大神指点迷津
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
//$frontController = Zend_Controller_Front::getInstance();
//$frontController->setBaseUrl('/mrzf/thanks');
$this->view->assign('title',$_SERVER["SERVER_NAME"].$this->_request->getBaseUrl());
//$this->view->assign('bod',$this->_request->getBaseUrl());
//$this->view->tit='';
//$this->view->bod='';
}
public function loginAction()
{
//$this->view->assign('title','zend framework框架测试成功!');
//$this->_forward("success","Login");
$this->_redirect("/mrzf/public/Login/success");
}}
?>
<?php
class LoginController extends Zend_Controller_Action
{
public function logAction()
{
/*$this->view->assign('title','欢迎界面');
if($this->_request->isPost())
{
$username=$this->_request->getPost('username');
$password=$this->_request->getPost('password');
$auth=Zend_Auth::getInstance();
include '../application/class/AuthAdapter.php';
$authAdapter=new AuthAdapter(trim($username),trim($password));
$result=$auth->authenticate($authAdapter);
if($result->isValid())
{
$sessionNameSpace=new Zend_Session_Namespace('project');
$sessionNameSpace->username=$username;
$sessionNameSpace->password=$password;
$this->_redirect('/index/success');
}
else
{
echo '用户名和密码错误!';
}
}*/
//$this->view->assign('title','欢迎界面');
//echo 'hello world';
//$this->_redirect('http://'.$_SERVER["SERVER_NAME"].$this->_request->getBaseUrl().'/login/success');
$this->_forward("success","Login");
//$this->view->title=$_SERVER["SERVER_NAME"].$this->_request->getBaseUrl().'/login/success';
}
public function successAction()
{
$username=$this->_request->getPost('username');
$password=$this->_request->getPost('password');
$this->view->assign('title',$username.'<br/>'.$password);
echo 'hello zf';
//$this->_redirect("/index/login");
}
}
?>
C:\AppServ\www\mrzf\application\views\scripts\index\index.phtml
<html>
<head>
</head>
<body>
<div id="bodyDiv" align="center">
<h1><?php echo $this->title;?></h1>
<table bordercolor='green' border='1' cellspacing='0' cellpadding='4'>
<form action="<?=$this->url(array("controller"=>"index","action"=>"login"),null,true);?>" method="POST">
<tr>
<td>姓名</td>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<td>密码</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="登录"/></td>
</tr>
</form>
</table>
</div>
</body>
</html>index/login.phtml
<html>
<head>
</head>
<body>
<a href="#"><?php echo $this->title;?></a>
</body>
</html>C:\AppServ\www\mrzf\application\views\scripts\login\success.phtml
<font size='4' color='red'><?php echo $this->title;?></font>login\log.phtml
<font size='3' color='red'><?php echo $this->title;?></font>C:\AppServ\www\mrzf\application\configs\application.ini
[project]
bootstrap.path="../application/Bootstrap.php"
bootstrap.class="Bootstrap"
phpSettings.display_errors=1
phpSettings.date.timezone="Asia/GMT-8"
resources.frontController.controllerDirectory="../application/controllers"
resources.view.contentType = "text/html; charset=gbk"C:\AppServ\www\mrzf\application\Bootstrap.php
<?phpclass Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
public function __initAutoload() {
$moduleAutoloader=new Zend_Application_Module_Autoloader(array('namespace'=>'','basePath'=>'../application'));
return $moduleAutoloader;
}
}
?>C:\AppServ\www\mrzf\public\index.php
<?php
set_include_path('../library'.PATH_SEPARATOR.get_include_path());
require_once 'Zend/Application.php';
$application=new Zend_Application('project','../application/configs/application.ini');
$application->bootstrap()->run();C:\AppServ\www\mrzf\public\.htaccess
RewriteEngine on
RewriteRule .* index.php我的代码其实也很简单,但弄来弄去就是不行,为什么zendframework的_forward方法能用而_redirect方法却不能用?老是出现'Invalid controller specified (error)'
如果你没有下载过,请不要随便回答。
以上我的问题,谁能帮忙呢?help me!
http://blog.csdn.net/myhonghx/article/details/6326736http://topic.csdn.net/u/20090206/17/dc63dbee-0aa1-4fa5-afa9-4a741bad01b0.html
想学些PHP来对网站就行修改 求帮助
我还是想弄到《PHP从入门到精通》的源码呀,求助!
zend framework的网站上几乎每个版本的手册都有.....
http://framework.zend.com/manual/1.8/zh/那个什么thinkphp的手册.....http://thinkphp.cn/Manual.....
我看了两眼,觉得压根不是一个档次的东西....
有没有1.8chm格式的呀?
说实在的,编程这东西有好些,都不难啊,所以个人以为,关键在于英文,就那么点破知识,中文的没有,我就没有办法了,对于我这种水平的,幸好有些他人博客可学习,否则光靠买书,学到的知识就更少的可怜了,而且都那么......,根本不值得炫耀呀!买书买回来的又有可能是所谓的垃圾书,电脑书最好还是非实体书的好呀,对于我这种层次的,有时候我就幻想着,什么知识书里都有,书真的很完美,哎,一言难尽,此条路真的十分无趣呀。