Absoluten Pfad auf Webserver mit PHP finden
English
Deutsch
Das folgende Skript zeigt dir den absoluten Pfad auf dem Webserver, der oft allein über FTP nicht gefunden werden kann.
get_absolute_path.php
<?php /* path.php */
list($scriptPath) = get_included_files();
echo $scriptPath;
?>
Lade dieses Skript per FTP auf deinen Webspace hoch und greife dann mit dem Browser darauf zu. Es zeigt dir einen Pfad wie
path_output.txt
/var/www/httpdocs/webmail.techoverflow.net/path.phpCheck out similar posts by category:
PHP
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow