Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function abs_pathlink($pop=0)
- {
- $serversoftware = $_SERVER['SERVER_SOFTWARE'];
- if (substr($serversoftware,0,6)=="Apache")
- {
- $ptemp = explode("/", GetFileDir($_SERVER['SCRIPT_FILENAME']));
- //array_shift($ptemp);
- array_pop($ptemp);
- while ($pop > 0)
- {
- array_pop($ptemp);
- $pop--;
- }
- return implode("/", $ptemp)."/";
- }
- else return $_SERVER['APPL_PHYSICAL_PATH'];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement