>
_JEXEC explained
Welcome, Guest

by guest on Tuesday, 20 January 2009
_JEXEC explained


This constant is not really a "string" as much as it is a boolean value either being 1 or 0 (zero). This constant is used to check to see if Joomla! is calling the file, or if a person has directly typed the path to the file in the URL. Joomla! sets _JEXEC to 1 (or any positive value really) when it is the one calling the file. _JEXEC is normaly used to check to make sure that no direct access to the file is being used.

Echoing  _JEXEC will either return "nothing" ( no value at all if set to zero or null ) or else 1 if it has been set by Joomla ( or some other application). This constant is normaly used in components and other files like this:

defined( '_JEXEC' ) or die( 'Access Denied' );

Please understand that this is a security constant. You can ommit _JEXEC if you want to, but by doing so, you are making it very easy for a hacker to come in and simply access the file at their own will then do whatever they want with that file. Again, this constant is used to check and see if Joomla! is accessing the file, or if it is being "directly" accessed through the URL by typing the path to the file in the browser window.



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering