p-h-p c-l-o-u-d
1、edoor 提示用户名不存在或禁用
'DB_TYPE'=>'mysql',
'DB_HOST'=>'localhost',
'DB_NAME'=>'chenpiedoor',
'DB_USER'=>'root',
'DB_PWD'=>'245852282',
'DB_PORT'=>'3306',
/* 'DB_HOST'=>'223.4.169.93',
'DB_NAME'=>'fasdfasd'
'DB_USER'=>'admin',
'DB_PWD'=>'123',
'DB_PORT'=>'3306', */
'DB_PREFIX'=>'', //检查这一句是否被注释。
用Winscp修改文件夹Runtime的属性八进制码为0777就行了,或者将W前打勾。
3、报lost ……错误 ,检查以下
Assuming your container name is mycontainer
, you should use the following credentials to connect to your database:
- Database host: mycontainer-db.my.phpcloud.com
- Database port: 3306
- Database schema name: mycontainer
- Database user: mycontainer
- Database password: your container password
4、执行数据库报错:no select database; 由于当前在主机下,要进入数据库,如下:
先选中 tianyu-db 再选中 chenpi数据库,就可以执行sql语
5、includes/cls_template.php 错误
造成这个错误的原因,主要是文件夹的权限
先将data文件夹和子文件夹的权限设置为777,如果还不行您查看下admin、temp、include这3个文件夹和子文件夹的权限是否为777
先将data文件夹和子文件夹的权限设置为777,如果还不行您查看下admin、temp、include这3个文件夹和子文件夹的权限是否为777
winSCP 中文乱码问题
http://blog.csdn.net/flyoxs/article/details/6044695
shop
1、访问图片显示 not found ,将adr下的 common.php 文件内的"/shop/" 改 "chenpishop",也就是对应的app路径
2 、上传图片报错,检查是该文件的权限是不是0777.
shop客户端
修改productdetail.xml 文件的 <com.shoujifeng.food.application.pub.productClass.GalleryFlow
edoor
1、悠改上传图片路路径
(1)在Admin/Lib/ORG 找到IUtils.class.php 修改以下几个方法的返回路径
function getImagePath(){
$path =str_replace( 'Admin/Lib/ORG/IUtils.class.php', '', str_replace('\\', '/', __FILE__));
$path= $path.'Public/upload/images/';
//$path = $_SERVER['DOCUMENT_ROOT'].'/chenpi/Public/upload/images/';
return $path;
}
$path =str_replace( 'Admin/Lib/ORG/IUtils.class.php', '', str_replace('\\', '/', __FILE__));
$path= $path.'Public/upload/images/';
//$path = $_SERVER['DOCUMENT_ROOT'].'/chenpi/Public/upload/images/';
return $path;
}
(2)在F:\phptest\appserver\chenpiedoor\Admin\Lib\Action找到 UploadAction.class.php 这个类修改 为如下
//设置附件上传目录
//$upload->savePath = 'Public/upload/';
//$upload->savePath = $_SERVER['DOCUMENT_ROOT']."/Public/upload/";
//$upload->savePath = 'Public/upload/';
//$upload->savePath = $_SERVER['DOCUMENT_ROOT']."/Public/upload/";
2、移动手机端访问修改数据库的路径
修改……\Api\lib 下的dbConnection.class.php 文件内容为
$dbtest = new IdealMySQL("t****u","t****u-db.my.phpcloud.com","ti***u","5*******");
3、修改 \Admin\Tpl\default\Index 下的index.html 文件,底部最后的公司名和链接
<div id="footer">Copyright © 2010 <a href="http://" target="_blank">什么公司</a></div>
4、将Public 目录下的所有文件夹权限设为可写入
5、输出内容为乱码 ,先确保在网页输出为Utf-8编码,浏览器改为UTF-8编码显示。
( 1)客户端处理
将package com.shoujifeng.win.wincomm.http; 下的HttpPlatform文件
String respondEntityString = EntityUtils.toString(httpResponse.getEntity());
改为如下:
String respondEntityString = EntityUtils.toString(httpResponse.getEntity(), HTTP.UTF_8);
String respondEntityString = EntityUtils.toString(httpResponse.getEntity());
改为如下:
String respondEntityString = EntityUtils.toString(httpResponse.getEntity(), HTTP.UTF_8);
(2)无法在网页显示,则在php使用编码转换 ,$resultString=iconv('UTF-8','GB2312//IGNORE',myjson($array)); 其中加上“//IGNORE”,防止,转换“--”时出错终止
(3)、将服务器的所有源文件编码改为 UTF-8,再上传,用winSCP上传时,设置为二进制数据上传,这样才不被修改编码,具体如下
选中文件-〉按复制 -〉弹出对话框,点击传输设置,然后选中二进制,再进行传输
首先检查admin_user表中ec_salt字段是否为空,不为空则这样加密:md5(md5(明文密码).$ec_salt);
为空则md5(明文密码)。
比如要想重置admin的密码(admin的ec_salt字段好像都不为空,$ec_salt即为ec_salt字段的值),则将
比如要想重置admin的密码(admin的ec_salt字段好像都不为空,$ec_salt即为ec_salt字段的值),则将password字段的值设为:md5(md5('admin').$ec_salt)=