ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader

What about php predefined magical constant (ex: __FILE__)

Author Message
utha



Joined: 28 Jul 2005
Posts: 2

PostPosted: Thu Jul 28, 2005 11:43 am    Post subject: What about php predefined magical constant (ex: __FILE__) Reply with quote

Hello,

I'd just like to know what outputs an encoded script containing, for example, the code:

echo "i made an error at line " . __LINE__;

is __LINE__ outputs real unencoded source line number or a number based on compiled byte code or others ?

Thx.

Sebastien Meudec.
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2788

PostPosted: Thu Jul 28, 2005 3:23 pm    Post subject: Reply with quote

Hi

The output is the same as if the file was unencoded. So __LINE__ will be the original line number, and __FILE__ will be the file name and path of the encoded file, not the original unencoded file.
_________________
Community Admin
Back to top
View user's profile Send private message
utha



Joined: 28 Jul 2005
Posts: 2

PostPosted: Thu Jul 28, 2005 3:41 pm    Post subject: Reply with quote

Thanks nick

It is just what I'm expected :)

I think I'm gonna try this product !
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2788

PostPosted: Thu Jul 28, 2005 3:49 pm    Post subject: Reply with quote

Great. Any problems or more questions then just let us know via the support helpdesk and we'll be happy to assist.
_________________
Community Admin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum