Hi > <b>Fatal error</b>: Method Document::__toString() must return a string > value in <b>/srv/www/localhost/htdocs/db/index.php</b> on line > <b>140</b><br />
That's just what it says, check your program flow.
You overrided the tostring function and somewhere in that new function you
jump out of it because of a flag that is set, and thus not returning
anything, which is equal to return null.
> I've not checked my E_NOTICE's yet.. actually not quite sure how to turn
One way would be to use .htaccess files, but I have included in all my
programs (read sites) a mechanism for this. Have one file where you keep all
the varialbes that you need accross the different pages (scripts), and then
on all your files, put this on the top:
if(!(defined('GLOBALS_LOADED')))
require_once 'scripts/globals.php'; #be sure to set relative path to
globals
if(defined('DEBUG_LVL'))
error_reporting(DEBUG_LVL);
else
error_reporting(0);
Then in your file globals.php you need to have at least this:
<?php
define('GLOBALS_LOADED',true);
define('DEBUG_LVL',E_ALL);
?>
Once you go to production, all you need to do is change the E_ALL to 0 and all
the pages follow suit...
HTH
Andy
--
Registered Linux User Number 379093
Now listening to Radio Stream
amaroK::the Coolest Media Player in the known Universe!
Cockroaches and socialites are the only things that can
stay up all night and eat anything.
Herb Caen
--
-- --BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e>++++$@ h++(*) r-->++ y--()>++++
-- ---END GEEK CODE BLOCK------
--
Check out these few php utilities that I released
under the GPL2 and that are meant for use with a
php cli binary:
http://www.vlaamse-kern.com/sas/
--
pgpH2F3Wp9agY.pgp
Description: PGP signature

