Get PHP info
Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
Returns the full phpinfo page (HTML) for the website.
Use it to debug PHP issues or inspect the complete PHP environment of the website.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
usernamestringRequiredExample:
u123456789domainstringRequiredExample:
Domain name
mydomain.tldResponses
200
Success response
application/json
infostringOptionalExample:
HTML string containing the full phpinfo page
<html>...</html>401
Unauthenticated response
application/json
500
Error response
application/json
get/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info
GET /api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"info": "<html>...</html>"
}Last updated
Was this helpful?