PEAR Manual
Prev |  | Next

# PEAR_ChannelFile::setBaseURL()

PEAR_ChannelFile::setBaseURL() -- set the base URL for a REST resource, or set of REST resources

## Synopsis

    require_once '/ChannelFile.php';

``void PEAR_ChannelFile::setBaseURL` (string $resourceType, string $url, string|false [$mirror = `FALSE`])`

## Description

Set the base URL that users should use to access a REST resource or set of REST resources.

## Parameter

string `$resourceType`

  Resource Type this url links to

string `$url`

  URL

string|`FALSE` `$mirror`

  mirror name, if this is not a primary server REST base URL

## Throws

throws no exceptions thrown

## Note

This function can not be called statically.

Prev | Home | Next
PEAR_ChannelFile::setAlias() | Up | PEAR_ChannelFile::setDefaultPEARProtocols()