Second question about PHP
来源:互联网 发布:冷子罪扣字软件下载 编辑:程序博客网 时间:2024/04/30 05:17
Today, I find a bewildering and fallacious point.
A class ,named a_dao.class.php, in DAO layer has codes as "require("./DBConnection.class.php")", and another one ,named b_dao.class.php, in DAO layer also has.
When I use both them as defined in another class "require("./dao/a_dao.class.php");require("./dao/b_dao.class.php")", it will say "Fatal error: Cannot redeclare class DBConnection inC:/Program Files/Apache Software Foundation/Apache2.2/htdocs/application/dao/DBConnection.class.php on line3".
I think this will take troubles to use, as we cann't require a class twice or more.
Why doesn't it require a class only once automatically like Java ?
- Second question about PHP
- A question about PHP
- ask question about tabctrl
- Usefull Question about C++
- question about google storage
- A question about utime
- a question about SILK:
- my question about acm
- Question about kNN Algorithm
- About Second Wife
- Question About Compile Xvid_Bench Please
- Something Question about DotNet!(zz)
- Question About Compile Xvid_Bench Please
- Question About Compile Xvid_Bench Please
- Question About Compile Xvid_Bench Please
- Question about applying for colleges?
- Some Question About ASP.NET
- A question about prime pairs
- 与Lua交换数据
- samba配置(相当辛苦菜配好的)
- 同济大学软件学院万院长谈择业
- The Pilots Brothers' refrigerator
- T-SQL: 取日期
- Second question about PHP
- Mule3.0的全新IDE--MuleStudio
- 一个难搞的异常,疯了!
- 微软Windows Azure平台资源汇总(转载:为了记录学习资源的)
- Hibernate实现分页
- 嵌入式Linux操作系统学习规划
- 常见的web功能测试方法(转载:http://www.testage.net/html/02/t-2702.html)
- 触摸屏的一些资料,touchscreen ,x+,x-,y+,y-,tsxp,tsxm,tsyp,tspm
- 最大流问题 pku 1273 Drainage Ditches