OS X下的sqlite / PHP [英] sqlite/PHP under OS X

查看:82
本文介绍了OS X下的sqlite / PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行10.5.3。我正在尝试使用sqlite

调用创建一个PHP命令行脚本。但它在第一个这样的(sqlite_open)失败了,说打电话给

undefined function sqlite_open ...。


phpinfo()告诉我sqlite支持已启用。


我缺少什么?


TIA - tim

Running 10.5.3. I''m trying to make a PHP command line script with sqlite
calls. But it fails at the first such (sqlite_open), saying "call to
undefined function sqlite_open ...".

phpinfo() tells me that sqlite support is enabled.

What am I missing?

TIA - tim

推荐答案

Tim Streater写道:
Tim Streater wrote:

运行10.5.3。我正在尝试使用sqlite

调用创建一个PHP命令行脚本。但它在第一个这样的(sqlite_open)失败了,说打电话给

undefined function sqlite_open ...。


phpinfo()告诉我sqlite支持已启用。


我缺少什么?


TIA - tim
Running 10.5.3. I''m trying to make a PHP command line script with sqlite
calls. But it fails at the first such (sqlite_open), saying "call to
undefined function sqlite_open ...".

phpinfo() tells me that sqlite support is enabled.

What am I missing?

TIA - tim



这里的东西没有任何意义。如果phpinfo()显示SQL Lite是启用了
,那么将不会定义sqlite_open()。


我知道这听起来很愚蠢 - 但是你执行的是来自

的phpinfo()与您调用sqlite_open()的位置相同?也就是说,如果

sqlite_open()调用是在Web应用程序中,那么你的phpinfo()是否是从同一网站加载的
?或者,如果这是一个CLI应用程序,你是否从另一个CLI调用phpinfo()



-

= =================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================

Something here doesn''t make any sense. If phpinfo() shows SQL Lite is
enabled, then sqlite_open() will not be defined.

I know this sounds stupid - but are you executing your phpinfo() from
the same location that you''re calling sqlite_open()? That is, if the
sqlite_open() call is in a web application, is your phpinfo() being
loaded from the same WEBSITE? Or, if this is a CLI application, are you
calling phpinfo() from another CLI?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


在文章< g3 ********** @ registered.motzarella.org>中,

Jerry Stuckle< js * ****** @attglobal.netwrote:
In article <g3**********@registered.motzarella.org>,
Jerry Stuckle <js*******@attglobal.netwrote:

Tim Streater写道:
Tim Streater wrote:

运行10.5。 3。我正在尝试使用sqlite

调用创建一个PHP命令行脚本。但它在第一个这样的(sqlite_open)失败了,说打电话给

undefined function sqlite_open ...。


phpinfo()告诉我sqlite支持已启用。


我缺少什么?


TIA - tim
Running 10.5.3. I''m trying to make a PHP command line script with sqlite
calls. But it fails at the first such (sqlite_open), saying "call to
undefined function sqlite_open ...".

phpinfo() tells me that sqlite support is enabled.

What am I missing?

TIA - tim



这里的东西没有任何意义。如果phpinfo()显示SQL Lite是启用了
,那么将不会定义sqlite_open()。


Something here doesn''t make any sense. If phpinfo() shows SQL Lite is
enabled, then sqlite_open() will not be defined.



这是一个额外的不是那里? :-)

Is that an extra "not" there? :-)


我知道这听起来很愚蠢 - 但你是从

执行你的phpinfo()你在同一个地方调用sqlite_open()?也就是说,如果

sqlite_open()调用是在Web应用程序中,那么你的phpinfo()是否是从同一网站加载的
?或者,如果这是一个CLI应用程序,你是否从另一个CLI调用phpinfo()

I know this sounds stupid - but are you executing your phpinfo() from
the same location that you''re calling sqlite_open()? That is, if the
sqlite_open() call is in a web application, is your phpinfo() being
loaded from the same WEBSITE? Or, if this is a CLI application, are you
calling phpinfo() from another CLI?



一个PHP脚本只包含phpinfo调用。另一个只有一个

sqlite_open调用。两者都在我的主目录中。我从终端

窗口开始运行:


promptphp somefile.php


所以 - 那个'是的。

One PHP script contains just the phpinfo call. The other just has an
sqlite_open call. Both in my home directory. I run both from a Terminal
window by going:

promptphp somefile.php

So - that''s it.


6月20日上午10:52,Tim Streater< timstrea ... @ waitrose.comwrote:
On Jun 20, 10:52 am, Tim Streater <timstrea...@waitrose.comwrote:

文章< g3etrb
In article <g3etrb


这篇关于OS X下的sqlite / PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆