Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 2nd, 2008, 3:20 PM   #1
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 365
Rep Power: 3 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Question Line Number

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
grimpirate is offline   Reply With Quote
Old Apr 2nd, 2008, 3:37 PM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,722
Rep Power: 5 Sane is on a distinguished road
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.
Sane is offline   Reply With Quote
Old Apr 2nd, 2008, 3:48 PM   #3
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 365
Rep Power: 3 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
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
grimpirate is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:32 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC