template tutorial: _FILE_ error
Posted: Thu Nov 24, 2011 3:35 am
Hey guys,
I'm quite new to PHP and I'm trying to work my way through some of the tutorials on here, but i'm having a little problem with the template tutorial.
Jacek talks about using $core_path = dirname(_FILE_); to locate the folder where the current script is stored but when I try to run the code it doesn't return anything. i.e. in the tutorial it says to run die(_FILE_).
I'm assuming there's an error somewhere in my PHP setup? I'm just wondering if someone can help me locate it.
I'm running xampp on MAC OSX if that helps.
Thanks in advance
Sal
I'm quite new to PHP and I'm trying to work my way through some of the tutorials on here, but i'm having a little problem with the template tutorial.
Jacek talks about using $core_path = dirname(_FILE_); to locate the folder where the current script is stored but when I try to run the code it doesn't return anything. i.e. in the tutorial it says to run die(_FILE_).
I'm assuming there's an error somewhere in my PHP setup? I'm just wondering if someone can help me locate it.
I'm running xampp on MAC OSX if that helps.
Thanks in advance
Sal