|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-19 11:06 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 10 01:00:01 2025 UTC |
Description: ------------ I try to use the realpath() call to get the absolute file path for a file. The file is located on the directory that was specified as a apache alias directory. Following is the alias set up in Apache httpd.conf: Alias /tctv/testimages "//192.168.1.125/tcshare/Logs/images" <Directory "//192.168.1.125/tcshare/Logs/images"> Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Here is the php snippet to make a realpath() call: <? ... echo "realpath=" . realpath("./testimages") . "<BR>"; ... ?> I do expect it returns "//192.168.1.125/tcshare/Logs/images", however, it returns null. I will appreciate if someone can help me on this. -Mike Reproduce code: --------------- Alias /tctv/testimages "//192.168.1.125/tcshare/Logs/images" <Directory "//192.168.1.125/tcshare/Logs/images"> Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Here is the php snippet to make a realpath() call: <? ... echo "realpath=" . realpath("./testimages") . "<BR>"; ... ?> Expected result: ---------------- I do expect it returns "//192.168.1.125/tcshare/Logs/images", however, it returns null.