![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
King of Portal
|
Is there any function or PHP constant that returns/holds the current line number of script execution? Or some way to determine it?
__________________
You are here to serve the board. So post well... and live. SPAMMING SPEED! GrimBB |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,722
Rep Power: 5
![]() |
Re: Line Number
Wow. Now why would you ever need to do that?
Try looking for traceback and debugging functions. Since the PHP debugger can show the line number of the error, it must be somewhere. But PHP might not give you access to everything like some languages do. |
|
|
|
|
|
#3 |
|
King of Portal
|
Re: Line Number
No worries Sane, it's '__LINE__'. I actually need it in order to implement assert, apparently the function is not available on the roadsend compiler.
__________________
You are here to serve the board. So post well... and live. SPAMMING SPEED! GrimBB |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Guess a Number | 3n! | C++ | 7 | Dec 2nd, 2007 3:38 AM |
| Question Number 1 | blake_jl | Python | 11 | Nov 24th, 2007 7:47 PM |
| Jumping to a specific line number in a text file | Adeil | C++ | 4 | Nov 5th, 2007 9:54 AM |
| Ackerman's function - crash upon launch | codylee270 | C++ | 6 | Oct 19th, 2006 2:14 AM |
| Installing IPB 2.03 | bh4575 | Other Web Development Languages | 0 | Apr 23rd, 2005 2:36 AM |