|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-04-30 09:35 UTC] andi@php.net
[2001-05-02 16:24 UTC] php at gustl dot net
[2001-05-02 16:29 UTC] andi@php.net
[2001-05-02 16:34 UTC] php at gustl dot net
[2001-05-02 16:34 UTC] php at gustl dot net
[2001-10-29 02:44 UTC] sniper@php.net
[2001-10-29 04:01 UTC] php at gustl dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 01:00:01 2025 UTC |
On w98 and w98se it is not possible to change from root directory (eg. c:\) to a relative subdirectory (e.g. windows). There is a delay of about 1 second. The same when accessing file functions (eg. is_dir, filesize) on filenames in the root directory without path (e.g. filesize ("msdos.sys"), no result is returned. Try this script: <?PHP function mychdir ($text, $dir, $works) { echo "$text '$dir': "; flush(); chdir ($dir); echo "<font color=". ($works ? "green" : "red").">". str_replace ("\\", "/", getcwd ())."</FONT><BR>"; flush (); } mychdir ("change to root", "/", true); mychdir ("change to existing full path", "c:/windows/temp", true); mychdir ("change to parent", "..", true); mychdir ("change to relative subdir", "temp", true); mychdir ("change to parent-parent", "../..", true); mychdir ("change to root", "/", true); mychdir ("change to relative subdir from root - does not work (notice the delay)", "windows", false); ?> Gustav Graf