大神救救小女子呀!这个bug了我两天了!……>_<
本帖最后由 fragilevil 于 2013-3-15 12:13 编辑框架配置:2.13
各位大神好,
if (!defined('BASEPATH')) exit('No direct script access allowed');
因为这个语句的问题(用echo调试过),让我的程序run持续在“No direct script access allowed”的状态!……
然后用浏览器跑,给出的信息是:
Object not found!The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404localhost
2013/3/13 19:04:52
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
关闭提示 关闭
确 认 取 消
度娘之后发现是配置的问题,可是她太含蓄了!!
我不知道怎么改呀!!
求大神相助!!
不够20天了,真不知道怎么呕一个系统给老师呀!!>_<,界面用html写好了,数据库用mysql写好了,就差后台了!0_0
小女子不才,大学4年没有学过这门语言,周围也没有像你们这样的大神,求大神相佑呀!!T^T
简单的,你下个xampp来运行吧 jeongee 发表于 2013-3-13 19:23 static/image/common/back.gif
简单的,你下个xampp来运行吧
亲,我就是用xampp运行的说……T^T 从你浏览器访问给出的提示看出 可能你文件没放到apache的web目录. bstaint 发表于 2013-3-13 19:38 static/image/common/back.gif
从你浏览器访问给出的提示看出 可能你文件没放到apache的web目录.
是那个htdocs嘛?我localhost是直接连接到我指定的项目文件夹,能运行显示出我第一个页面,但是点击确定之后就出现如上的出错页面了……T^T 可不可以把 application/config/config.php 內的配置貼出來看看
還有你xampp的目錄結構 本帖最后由 fragilevil 于 2013-3-13 19:54 编辑
bax 发表于 2013-3-13 19:44 http://codeigniter.org.cn/forums/static/image/common/back.gif
可不可以把 application/config/config.php 內的配置貼出來看看
還有你xampp的目錄結構 ...
application/config/config.php内的平配置:
$config['base_url'] = 'http://localhost/finance_system/';
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'AUTO';
$config['url_suffix'] = '';
$config['language'] = 'english';
$config['charset'] = 'UTF-8';
$config['enable_hooks'] = FALSE;
$config['subclass_prefix'] = 'MY_';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
$config['allow_get_array']= TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger']= 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use
$config['log_threshold'] = 0;
$config['log_path'] = '';
$config['log_date_format'] = 'Y-m-d H:i:s';
$config['cache_path'] = '';
$config['encryption_key'] = '';
$config['sess_cookie_name']= 'ci_session';
$config['sess_expiration']= 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name']= 'ci_sessions';
$config['sess_match_ip']= FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path']= "/";
$config['cookie_secure'] = FALSE;
$config['global_xss_filtering'] = FALSE;
$config['compress_output'] = FALSE;
$config['time_reference'] = 'local';
$config['proxy_ips'] = '';
/* End of file config.php */
/* Location: ./application/config/config.php */
xampp的目录架构不知道怎么贴……>_<
fragilevil 发表于 2013-3-13 19:51 static/image/common/back.gif
application/config/config.php内的平配置:
$config['base_url'] = 'http://localhost/finance_system/ ...
目錄下的 .htaccess 有改過嗎 ? bax 发表于 2013-3-13 22:27 static/image/common/back.gif
目錄下的 .htaccess 有改過嗎 ?
有的说,就是网上那种不用显示index.php这样改的,直接贴过来……据说可以…… fragilevil 发表于 2013-3-13 22:37 static/image/common/back.gif
有的说,就是网上那种不用显示index.php这样改的,直接贴过来……据说可以…… ...
清空htaccess 能不能執行?
页:
[1]
2