PostNuke Help

Previous
pnGetBaseURI

Home
up

Next
pnGetStatusMsg


pnGetBaseURL

obtain base URL for this site

Synopsis

string pnGetBaseURL();

Description

pnGetBaseURL() obtains the base URL for the site. The base url is defined as the full URL for the site minus any file information i.e. everything before the 'index.php' from your start page.

Return Values

This function returns the base URL of the site.

Notes

The last character in the string returned by pnGetBaseURL() is always '/'

pnGetBaseURL() replaces the old nukeurl global variable.

Examples

// get base URL
$path = pnGetBaseURL();
       

See Also

pnGetBaseURI()


Previous
pnGetBaseURI

Home
up

Next
pnGetStatusMsg