How i can get the current path in the PHP ? Like c:\www\hi5_adder or ? /home/pinkguy/hi5_adder (in linux) ?!
realpath('./'); Course the full path for the current script including the script filename is pulled with $_SERVER['SCRIPT_FILENAME'] ('SCRIPT_NAME' pulls just the filename) You could always put php.php on your sever and inside of it put <? phpinfo(); ?> and goto it in the browser if you want to see all your PHP settings and all the possible $_SERVER['...'] values