lwy | 1 Aug 2006 10:52

replace the mysql with sqlite for php

hi all ,i have some code with php+mysql,i want replace the mysql with
sqlit .how can i do.thanks.
my some code:
<?php
session_start();
$DRIVER='mysql';
$HOST='localhost';
$USER='user';
$PASSWD='OsluseR';
$DATABASE='users';
$ADODB_PATH='/usr/local/lib/php/adodb/adodb.inc.php';
$user_table="password";
include("$ADODB_PATH");

$db=NewADOConnection("$DRIVER");
$db->connect("$HOST","$USER","$PASSWD","$DATABASE") or die("connect
".$DATABASE." failed");

if(isset($_GET['id']) && !empty($_POST['submit']))
    unset($_GET['id']);

if($_POST['submit']=="&#204;í&#188;&#211;")
{
   $name=&$_POST['name'];
   $password=md5($_POST['password']);
   $UID=&$_POST['UID'];
   $GID=&$_POST['PID'];
   $home=&$_POST['home'];
   $shell=&$_POST['shell'];
   $limitdate=&$_POST['limitdate'];
(Continue reading)

yuliang10 | 1 Aug 2006 15:44

易方优IT博客电子杂志2006年7月25号第一期!

如果邮件不能正常阅读或链接,请点击这里



 

选聘服务是为了满足企业客户对中级人才的需求而特别推出的

其特点是不同于发布招聘信息的招聘形式,而是由易方优的IT专业团队根据企业的用人需要,利用易方优平台的人才资源、凭借对IT职位的深刻理解及丰富的人力资源工作经验,为企业筛选人才,并推荐面试,及至最终上岗的服务。

* 中级IT人才的招聘服务
* 作为IT专业招聘,易方优有何特色?
* 通过何种措施保证网络招聘效果
案例][我要注册



五颜六色的HR们
HR们做的事其实是企业来说是至关重要的,但通常都是被动执行命令,很难从企业大局和长远去布局和谋划。就说招聘吧,老板急,部门急,压力都加给了HR,但可以自己做主的事却很有限,掌握的招聘费用也不多,在招聘过程中只伴演了联系人的角色,职位需求是用人部门提,面试也基本上是用人部门来把握,HR只是来选择招聘渠道,联系应聘人。
[ 查看全文 ]     



登陆 | 注册    
 网上投简历,为什么回复少?
    两个人被老虎追赶时,你不需要比老虎跑的快,你只需要比另一个人快就成。当大家都在求职时,你实际不是在跟招聘单位过招,实际上你是跟同样在求职的人比拼,你用心做的多一些,生存的机会自然就会别人多一些,其实道理如此的简单,为什么那么多人就没有意识到。[查看全文]

 


 一个电话能改变什么?
毕业时间这么久了,我想各方面都已稳定,走出来是很需要勇气的。也真是机缘巧合,我想他在家也是网上转转,就试着打了个电话,一切都发生了变化。[查看全文]

* 工作是为了谁
* 你凭什么看中我
* 招聘会见闻
* 甲方乙方
* IQ重要还是EQ重要
* 四个人
* 为啥拒绝机会
* 请给我一个拒绝的理由
* 相互影响的我们
* 观察
* 别叫我鲁尼 我是梅西   
* 你是不是很幼稚?      
* 枪林弹雨中小心做人      
* peer-to-peer 技术  
* 小留学生的故事         
* 猎头的左右面

与同事说
怒放的希望
冷眼观职场
境由心生……
与技术无关的生活
无痕的BLOG
stella
予生
狮子王的怒吼
海豚的微笑
傻姑阿七
四分之二
傻姑阿七
香奈尔的虚荣
阿敏的博客
境由心生……


 
 
    您是我们重要的用户,我们希望这些邮件对您有所帮助。但是,如果您不希望收到易方优的邮件或其他信息。请您取消订阅
    感谢您成为一名易方优的成员。
北京易方优网络科技有限公司
电 话: 010-6588 8118
邮 箱:contact <at> e4u.cn

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ADodb-general mailing list
ADodb-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/adodb-general
Greg Lindstrom | 3 Aug 2006 13:59
Picon

ADO Connections in Python

Hello-

I am curious about running multiple processes using adodb.  I have a base class (Python 2.4 on Gento Linux hitting Postgres) that instantiates a connection to be used by each process.  If I start up N separate processes, each using the same base node, will I have N separate connections to the database?  Or does adodb start a service that will only open a set number of connections?

Thanks for you help,

--
Greg Lindstrom
Novasys Health, Little Rock, AR


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ADodb-general mailing list
ADodb-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/adodb-general
Mirek Rusin | 5 Aug 2006 17:21
Picon
Favicon

(no subject)

Witaj adodb-general!

--

-- 
Pozdrowienia,
 Mirek Rusin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Rich Shepard | 8 Aug 2006 04:58
Favicon

Clarification Desired

   There is an application that I would like to use with postgresql-8.1.4 as
the back end. The application is written in php and uses adodb to connect to
mysql.

   The developers tell me that there are a number of reasons why postgres is
not currently supported. When I read the adodb site and skim the manual I'm
left with the impression that there should be no reason why any application
that writes to adodb should not work with any supported dbms.

   I'm not asking for help from you as I'm not on the development team for
this application. Nor am I chastising the developers. I'm trying to
reconcile my understanding from your site that postgres should work just as
well as mysql does, with the fact that it doesn't.

   Please help me understand where the issues are. Perhaps, then, I could
contribut to the postgres port of this application.

Thanks,

Rich

--

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)    |            Accelerator
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Alfredo Yong | 8 Aug 2006 05:16
Picon

Re: Clarification Desired

Helo Richard,
 
the point you are arising is very interesting. In fact, it can be reasonable to think that if your application uses adodb, it should be possible to have any database behind it.
 
The answer is a definitive may be. IF you have written the queries thinking in porting, then it should be no problem. You have to understand that you can execute through adodb propietary extensions of the SQL language. If you, as programmer, are used to that extensions (I have that "problem" with my beloved  PostgreSQL) then it may be hard to you to limit yourself to the ANSI 92 (or ANSI 99) SQL standard.
 
On the other hand, adobd have some support to propietary estensions, providing, depending upon the driver to the dabatase you are using, a wrapper or a emulation of that extension.
 
Hope my English is good enough to be understood, and also  i hope this help you in your decision. I would like to ask you to tell us about your decision and the reasons behind it.
 
Greetings,

Alfredo.
 
On 8/7/06, Rich Shepard <rshepard <at> appl-ecosys.com> wrote:
  There is an application that I would like to use with postgresql-8.1.4 as
the back end. The application is written in php and uses adodb to connect to
mysql.

  The developers tell me that there are a number of reasons why postgres is
not currently supported. When I read the adodb site and skim the manual I'm
left with the impression that there should be no reason why any application
that writes to adodb should not work with any supported dbms.

  I'm not asking for help from you as I'm not on the development team for
this application. Nor am I chastising the developers. I'm trying to
reconcile my understanding from your site that postgres should work just as
well as mysql does, with the fact that it doesn't.

  Please help me understand where the issues are. Perhaps, then, I could
contribut to the postgres port of this application.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)    |            Accelerator
< http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
ADodb-general mailing list
ADodb-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/adodb-general



--
Alfredo Yong
Sistemas web
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
ADodb-general mailing list
ADodb-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/adodb-general
Lester Caine | 8 Aug 2006 08:34
Picon
Favicon
Gravatar

Re: Clarification Desired

Rich Shepard wrote:

>    There is an application that I would like to use with postgresql-8.1.4 as
> the back end. The application is written in php and uses adodb to connect to
> mysql.
> 
>    The developers tell me that there are a number of reasons why postgres is
> not currently supported. When I read the adodb site and skim the manual I'm
> left with the impression that there should be no reason why any application
> that writes to adodb should not work with any supported dbms.
> 
>    I'm not asking for help from you as I'm not on the development team for
> this application. Nor am I chastising the developers. I'm trying to
> reconcile my understanding from your site that postgres should work just as
> well as mysql does, with the fact that it doesn't.
> 
>    Please help me understand where the issues are. Perhaps, then, I could
> contribut to the postgres port of this application.

I work on a project where I support the Firebird implementation, while 
others work in Postgres, oracle and a few insist on MySQL ;)

We had to add a few additions to ADOdb in the 'wrapper' that accesses 
it, some of which allow PEARdb to be used as an alternative to ADOdb, 
but mainly we added a number of small additions to allow for the easier 
management of 'portable' SQL.

Even with that, we still have to watch out for Reserved Words used in 
the wrong place, and structures of SQL that ADOdb does not map between 
the different engines.

As Alfredo has said - you can use ADOdb and still write an application 
that is specific to one database engine.

It took me a while to iron out all the problems in tikipro - now called 
bitweaver - to get Firebird working, and then another round of work 
addressed Oracle, but since Firebird and Oracle are similar in 
requirements, that became easier. So provided that you have the support 
of the MySQL developers, ADOdb means that a port to Postgres can be 
attempted. How successful it will be will depend on how tidy the 
existing code is and if the other programmers cooperate.

--

-- 
Lester Caine - G8HFL
-----------------------------
L.S.Caine Electronic Services - http://home.lsces.co.uk
Model Engineers Digital Workshop - 
http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Rich Shepard | 8 Aug 2006 23:31
Favicon

Re: Clarification Desired

On Mon, 7 Aug 2006, Alfredo Yong wrote:

> the point you are arising is very interesting. In fact, it can be reasonable
> to think that if your application uses adodb, it should be possible to have
> any database behind it.

Alfredo,

   To repeat: this is not _my_ application. Rather, it is one that I would
like to use with postgres but which has been developed specifically for
mysql.

> The answer is a definitive may be. IF you have written the queries
> thinking in porting, then it should be no problem. You have to understand
> that you can execute through adodb propietary extensions of the SQL
> language. If you, as programmer, are used to that extensions (I have that
> "problem" with my beloved PostgreSQL) then it may be hard to you to limit
> yourself to the ANSI 92 (or ANSI 99) SQL standard.

> On the other hand, adobd have some support to propietary estensions,
> providing, depending upon the driver to the dabatase you are using, a
> wrapper or a emulation of that extension.

   Now I understand. The application's developers may have incorporated mysql
extensions and local dialect in the application, and that is what is fed to
adodb.

   I've been told my core PostgreSQL developers that it is more ANSI
compliant than is mysql, and that can cause portability issues.

> Hope my English is good enough to be understood, and also  i hope this help
> you in your decision. I would like to ask you to tell us about your decision
> and the reasons behind it.

   As a businessman I am frustrated that there is no readily useful client
management and sales lead, prospect, and campaign administration
application that supports postgres. Well, there is one, but they want to add
even more layers on top of apache, and that's not what I want to support.
Large enterprises with separate computer support staffs might not mind all
the time and effort required to keep everything running, but we're much too
small to devote that level of effort.

Thanks,

Rich

--

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)    |            Accelerator
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Rich Shepard | 8 Aug 2006 23:34
Favicon

Re: Clarification Desired

On Tue, 8 Aug 2006, Lester Caine wrote:

> I work on a project where I support the Firebird implementation, while
> others work in Postgres, oracle and a few insist on MySQL ;)

Lester,

   It's easy to get the impression that too many insist on MySQL. Oh, well.
It's their business, I suppose.

> Even with that, we still have to watch out for Reserved Words used in the
> wrong place, and structures of SQL that ADOdb does not map between the
> different engines.

   Aha! Good points.

> As Alfredo has said - you can use ADOdb and still write an application
> that is specific to one database engine.

   I suppose that if one does not look sufficiently far ahead this is what
happens. "Gee, someone wants to use another backend?"

> So provided that you have the support of the MySQL developers, ADOdb means
> that a port to Postgres can be attempted. How successful it will be will
> depend on how tidy the existing code is and if the other programmers
> cooperate.

   Yup. Those are the keys all right.

Many thanks,

Rich

--

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)    |            Accelerator
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane