|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-30 04:08 UTC] dbeu@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 07:00:01 2025 UTC |
create a file c:\temp\temp.txt Now create a PHP file, but not in the root directory of your webserver, but in a subdirectory of it, that contains this command: rename("c:\\temp\\temp.txt", "temp.txt"); Now run this script from your webbrowser (e.g. http://server/subdir/rename.php) The file is now moved away from c:\temp, but not into the directory where rename.php resides in (as one would guess), but in the root directory of the web application!