How to find the web root of a hosting in PHP
===

How to find the **web root** (www, html_public, etc) of a hosting to upload files automatically via the PHP ftp_put() function ?

Thank you in advance for your help.

Kind regards