PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
What errors are you sending to it? If they are fatals, they will generally not be sent as they are often derived from parsing errors which often happen before any code has been run.
I guess you were right, it won't take the fatal error, i thought the easiet way to make one would be to call an undefined function, but that is kind of a parse error right?
Parse and most other fatal errors will be handled by php when it reads the file or code. As I said before, this is done, more often than not, before any of your code has been run. So on the whole, no, using trigger_error() like that will not work.. however you could use function_exists(), method_exists(), and class_exists() for detecting, then use trigger_error() with the results from that call.