Board look Amber Blue Moon Futaba Headline Pseud0ch Toothpaste
Admin Manage

php4 probs? (7)

1 Name: calle 2005-01-04 02:34 ID:Heaven [Del]

i had problems installing, the install.php seemed to halt when trying to create the database (halted at "Installing database ...").

but i quickly found the cause in the logs:
Jan 4 11:26:32 delirium apache2: PHP Fatal error: Call to undefined function: sqlite_exec() in /path/to/install.php on line 75

and lookie it says so here:
http://se2.php.net/manual/sv/function.sqlite-exec.php

it's actually just in cvs? weird. maybe you should use sqlite_query() instead? i changed it to that and it worked just swell.

2 Name: calle 2005-01-04 03:00 ID:Heaven [Del]

further on.. it seems i can't add a category. the query submits but the page goes blank and no category has been added. hmm.

3 Name: calle 2005-01-04 03:09 ID:Heaven [Del]

right.. found i in functions.php - and it's sqlite_exec() doing its thing.

will something break if i change all sqlite_exec()'s into sqlite_query()'s?

hmm. everything else is smooth tho. great stuff! :)

4 Name: calle 2005-01-04 05:49 ID:Heaven [Del]

hmm.. lastly, the imagerotate() function seems to be a bother to get working. got the rest of gd working ata least (i think? :)

now i've got it running though!

5 Name: h3!h3//z2E0hc 2005-01-04 09:13 ID:XocVqt/L [Del]

> Call to undefined function: sqlite_exec() in /path/to/install.php on line 75

Hmm. sqlite_exec() is relatively new, but if you get the latest PECL version (1.0.3), it should include the function. Nevertheless, I don't think using sqlite_query() in it's place will break anything (knock wood)- it's used in queries that don't return a result set (update, deletes, inserts).

> the imagerotate() function

Hmm. Never occurred to me that people would want to rotate after posting. I'll put it on the to-do list.

6 Name: calle 2005-01-04 23:22 ID:Heaven [Del]

you're using imagerotate() when creating the verification image already! and that broke because..

http://se.php.net/manual/sv/function.imagerotate.php

> Note: This function is only available if PHP is compiled with the bundled version of the GD library.

:/ so i have no rotated verification text

7 Name: h3!h3//z2E0hc 2005-01-05 00:00 ID:XocVqt/L [Del]

Oh yeah, there :).

Did you build your own PHP? If so, you can just add "--with-gd" to the configure line. It's bundled into PHP>=4.3, so no external libraries have to be separately installed (other than libpng and libjpeg).

If you got a binary build, perhaps there's an "php-gd" package that is an apt-get away.

Otherwise, you can leave out just the imagerotate() call- it might work, it'll just be easier to machine-read. You might want to fiddle with the font selection in the imagestring() call to select a "better" one.

Name: E-mail: