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!
i have a class with a query function which simply does mysql_query or die ok easy but what i want is the good debuging stuff so i want it to look like this
(Sorry don't have a PHP I can test with just this momment, but)
First try echo-ing out __LINE__/__FILE__ in the global scope to make sure they're getting set orginalls (I have seen some corrupted PHP's at times that don't set those constants).
Then try echo-ing out $line,$file inside the function, not as part of die, just to see if its receiving them.