List PHP options for a website
Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
API Token authentication
Agency Plan website UID
zpwlGlp19Success response
Array of AgencyHosting.V1.Php.OptionResource
php.ini directive name.
upload_max_filesizeWhat the directive controls.
The maximum size in bytes of an uploaded file.Value applied when no custom value is set.
128MValues this option accepts. Null when the option accepts any value of its type.
["128M","256M","512M"]Value currently in effect for the website.
256MWhether the option takes a single value or a list of values.
valuePossible values: Unauthenticated response
Error response
GET /api/agency-hosting/v1/websites/{website_uid}/php-settings/options HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"name": "upload_max_filesize",
"description": "The maximum size in bytes of an uploaded file.",
"default_value": "128M",
"allowed_values": [
"128M",
"256M",
"512M"
],
"value": "256M",
"type": "value"
}
]Last updated
Was this helpful?