Dear All,
how can I get the name of the script ie is executing.
regards bvsureshbabu
$_SERVER['PHP_SELF'] or FILE
Hi,
Use phpinfo(INFO_VARIABLES); to see what u require!
<?php phpinfo(INFO_VARIABLES); ?>
HTH
Use phpinfo(); for more INFO!
Dear Friend,
$PHP_SELF and FILE will give the total path
but I need to find the name of the script only
have a look at what's stored in $_SESSION array or use basename with one of the two variables above
i think he means $_SERVER 😉
i think you're right: $SERVER is way better then my previously posted $SESSION 🙂