FILE ... TOC

Calculate relative URL

Pages A and B are retrieved, both are to be saved and A has a reference to B.

The reference in A referencing B can be absolute or relative. However after saving both of them the saved form of A should have a relative reference to the saved location of B.

This method calculates and returns the relative url from A to B.

Usage:

             $href = $pageA->relate($pageB)

where both $pageA and $pageB are objects to pages.

FILE ... TOC