Roland684 wrote:How can I fix this?
Roland684 wrote:to detect wether or not the script is running on xampp is just sill
Roland684 wrote:it's going to be an ugly piece of code I'll have to write just to find something trivial as the current directory.
use Cwd qw(abs_path);
$path = abs_path($0);
$scriptname = basename(__FILE__);
$0 = "stealth";
print "The actual path to this script is: $FindBin::Bin/$FindBin::Script\n <br>";
print "The Script Path is: $path\n <br>";
print "The scriptname is: $scriptname\n <br>
Users browsing this forum: No registered users and 64 guests