<?php
function calculateRelativePath($a,$b) {
return;
$flag = "";
for($i=0; $i < $count-1; $i++) {
$flag .= "../";
}
}
$relative = calculateRelativePath("/a/b/c/d/e.php","/a/b/12/34/c.php");
PD9waHAKCmZ1bmN0aW9uIGNhbGN1bGF0ZVJlbGF0aXZlUGF0aCgkYSwkYikgewogICAgaWYgKGVtcHR5KCRhKSB8fCBlbXB0eSgkYikpCiAgICAgICAgcmV0dXJuOwogICAgJGZsYWcgPSAiIjsKICAgICRzcGxpdDEgPSBleHBsb2RlKCIvIiwkYSk7CiAgICAkc3BsaXQyID0gZXhwbG9kZSgiLyIsJGIpOwogICAgJGRpZmYxID0gYXJyYXlfZGlmZl9hc3NvYygkc3BsaXQxLCAkc3BsaXQyKTsKICAgICRjb3VudCA9IGNvdW50KCRkaWZmMSApOwogICAgZm9yKCRpPTA7ICRpIDwgJGNvdW50LTE7ICRpKyspIHsKICAgICAgICAkZmxhZyAuPSAiLi4vIjsKICAgIH0gCiAgICAkZGlmZjIgPSBhcnJheV9kaWZmX2Fzc29jKCRzcGxpdDIsICRzcGxpdDEpOwogICAgcmV0dXJuICRmbGFnLiBpbXBsb2RlKCIvIiwkZGlmZjIpOwp9CiRyZWxhdGl2ZSA9IGNhbGN1bGF0ZVJlbGF0aXZlUGF0aCgiL2EvYi9jL2QvZS5waHAiLCIvYS9iLzEyLzM0L2MucGhwIik7CnByaW50X3IoJHJlbGF0aXZlKTs=