Which way to get the PHP self script name is the fastest?
From the WebDevLogs.com blog today, there's some benchmarking results from Mgcci's look at PHP's methods for grabbing some common data the script's own name. This includes the magic call to __FILE__: The result shows that __FILE__ is the fastest, so use that when you don't have to use any other method to find the script's self. __FILE__ is a built in constant show the location of the running script.
I'm Ansar Ahmed from Bangalore, India and I run this blog full-time, with the basis of providing the tech news. Currently working in Logica(India/Bangalore) as Software Engineer. I am B.E in Information Science.
Apart from my tight schedule of work i spend my week end, holidays doing some thing new .. hmm I crack my head on everything that's interesting, like programming, computer games, design, and watching the web figuring out what it does to us and what we can do with it. Contact me for any Joomla/Mambo/PHP based work.