On Jun 20, 10:52 am, Tim Streater <timstrea...@waitrose.com> wrote:
> In article <g3etrb$nn...@registered.motzarella.org>,
> Jerry Stuckle <jstuck...@attglobal.net> wrote:
>
> > Tim Streater wrote:
> > > 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
>
> > 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? :-)
>
> > 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?
>
> 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:
>
> prompt> php somefile.php
>
> So - that's it.
I faced same problem on php 5.2.5, i don't not if the bug was fixed as
of 5.2.6, now i use PDO functions..

both on Linux and Windows