Posted by Oliver Grδtz on 11/23/07 16:52
Luigi schrieb:
> Oh my God! I found the problem! It was the "../sqlite" directory... it
> wasn't writable! The strange thing is that PHP (or SQLite, I don't
> know) didn't yield me any error!
First of all:
> - Is the sqlite file write protected (win32) or not
> writable by your web server user (linux)?
People usually hate "told you so" speeches so I'll shut my mouth. Keep
in mind: If it's Linux and you experience problems, it will *ALWAYS* be
some problem with file or directory access rights. Many years of
experience have proven this to be true ;-)
About the error messages: The execute() method didn't exist on your
object so this is NOT a problem with SQLite not telling you about an
error because this is a very basic language level error in PHP. There
definitely IS something wrong with your error_reporting config. Find out
which php.ini you are using (can be found in the output of phpinfo())
and then make sure that you have display_error set to ON (only for your
development server, that is). Alternatively you can define a log file
where your error messages will be stored. Proper error reporting is as
important to successful programming as a pencil is to writing a letter.
Wish you a nice weekend. G'bye!
OLLi
--
Opposite?
[Patrick, Coupling]
[Back to original message]
|