Is it possible to set the line number and file name to show in error
messages?
I'm looking for something similar to the perl's expression
#line 298 myscript.pl
which tells the compiler explicitely that here is line 298 of myscript.pl.
If an error occurs 5 lines later, it would show something
As far as I know, __LINE__ and __FILE__ are magic constants which return
the current line number and file name.
But what I'm looking for is a way to set these two things. I want to say on
line 30 that this is not line 30, but line 40 for example. And php should
then return all following errors
How do you include the source scripts into the main scripts? By using
include() or require()? IIRC, __LINE__ and __FILE__ should work in
cases like that telling you the line and file name of the source script,
not the main script.
Unfortunately none of them. I really put them together in
3 matches
Mail list logo