2014-09-01, 12:58 AM
2014-09-01, 01:04 AM
Hey, I didn't quite understand your question,
THIS_SCRIPT refers to the actual page the code is being executed in, if you want to compare it to a constant, you could use :
THIS_SCRIPT refers to the actual page the code is being executed in, if you want to compare it to a constant, you could use :
<?php
if(defined('THIS_SCRIPT') && THIS_SCRIPT == 'editpost.php') {
// we are in editpost.php
}
2014-09-01, 11:02 AM
Exactly thanks very much. I want the script run only if the page is editpost.php