View Full Version : realpath()
anshul
05-10-2005, 01:21 PM
realpath() not gives real path of directory.
e.g., realpath('phpmyadmin'); should be c:\Inetpub\wwwroot\phpmyadmin I got it c:\Inetpub\wwwroot\test\phpmyadmin because my script is in test directory! How can I get correct path?
firepages
05-10-2005, 02:55 PM
I guess its an IIS issue as Apache+PHP on win32 correctly translates the path for me.
anshul
05-11-2005, 06:39 AM
No. I'm using Apache2 on Windows 2003.
Velox Letum
05-11-2005, 07:23 PM
Do you mean it should be outputting c:/Inetpub/wwwroot/test/phpmyadmin? If its in the directory test then it will output it in the path.
anshul
05-12-2005, 10:42 AM
Yeah! I got is working; I used getcwd() and chdir()
I need to calculate total-space used and total-space available for all directories. disk_total_space() and disk_free_space() not gives desired o/p. filesize() provides correct size of files.
anshul
05-13-2005, 08:16 AM
Please, someone tell how to get information about file/directory permissions. I used fileperms($file), but I get number '33206' for all files and a different same number for all directories. I used this function on Windows/Fedora with same results. I expected something like '0666', '0777', '666', or '777'
-----/
I intend write files/directories manager script using PHP file-system functions.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.