php.tar.gz vs php-4-monkey-0.91.tar.gz


Forum: myDSL Extensions (deprecated)
Topic: php.tar.gz vs php-4-monkey-0.91.tar.gz
started by: b1ackmai1er

Posted by b1ackmai1er on July 16 2005,07:25
I am still working on getting PHP+monkey+sqlite working.

I noticed that there does not seem to be any difference between
php.tar.gz and php-4-monkey-0.91.tar.gz and was wondering if
php-4-monkey-0.91 is incorrect.

Regards b1m1

Posted by b1ackmai1er on July 16 2005,16:47
ok, i found k4nts post explaining the change to php-4-monkey-0.9.1tar.gz.

Still unable to get php to talk to sqlite. Ran a couple of test scripts and they all fail to recognize sqlite.

I gather that sqlite is classed as an extension to php and needs to be setup in the config file. However I am unable to find the php.ini file.

Does this sound suspicious to anyone?

Thanks for listening.

regards b1m1

Posted by b1ackmai1er on July 16 2005,17:20
ok, i found the php -m command and it doesnt list sqlite. Also the phpinfo does not list sqlite either so i have come to the conclusion that sqlite is not supported by php in dsl.

There are lots of scripts referencing sqlite in the php directories. Maybe dsl is trying to emulate mysql using sqlite? maybe thats why the php -m lists mysql.
I'm confused

Any comments... other than "you should start your own blog" heh heh

regards b1m1

Posted by roberts on July 16 2005,22:28
I think you might want to read this < thread >
Posted by b1ackmai1er on July 17 2005,10:41
Thank you.

Will take a look at that right now.

It's a big learning curve at the moment !

...

Ah, so to use sqlite in my php scripts in need to include the

require "sqlite.php"

line at the beginning, is that right?

regards b1m1

Posted by b1ackmai1er on July 17 2005,18:39
Ahh, I have made some progress and managed to get my PHP scripts to run and accept that sqlite is there.

Now i think I am stuck with permission issues trying to create a file.

The code that fails with a permission denied error is

@touch($dbname)

which is supposed to create an empty file.

Anyone have any idea what I need to do to the permissions to let PHP create files?

regards b1m1

Posted by b1ackmai1er on July 17 2005,19:08
Hmmm, chmod 777 -R htdocs
seems to allow the touch command to create the file.

Now I just get a blank screen. No errors. That makes things hard to debug!

b1m1 signing off for now!

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.