How know the web path (some servers have public_html dir, others other)
Is possible know with PHP which is the real web path?
In some servers FTP connect directly to the web path, others have subdirectories and the public_html are the real web path... Others use other name (www for example)...
Is possible retrieve from PHP which is the real web path?
Well, in reality me problem is more complex, I pass to a script the ip, username and password of a remote server and I want to automatically upload a file to the web root directory of the remote server via ftp (ftp_connect, ftp_login... etc) and I not find how to know with code which is the web root directory, not all servers have public_html, other the web root directory is www and others connect directly via ftp to the web root directory...
I am searching in the web for the answer and no find the solution... Well, but I think is logical that has to be possible to know the web root directory...
Thanks in advance...!!!