[PHP] Error management

2001-10-26 Thread iuhi hkj
How can I know the line and the file from where a function has called. I already know __FILE__ and __LINE__, but I don't want to transmit them in arguments. Exemple : --- toto.php --- 1 : include("test.inc") 2 : 3 : test("bidule"); 4 : --- test.inc --- 1

[PHP] Error management

2001-10-26 Thread iuhi hkj
How can I know the line and the file from where a function has called. I already know __FILE__ and __LINE__, but I don't want to transmit them in arguments. Exemple : --- toto.php --- 1 : include("test.inc") 2 : 3 : test("bidule"); 4 : --- test.inc ---