note 95219 added to function.symlink

From: Date: Sat, 19 Dec 2009 00:48:13 +0000
Subject: note 95219 added to function.symlink
Groups: php.notes 
Request: Send a blank email to php-notes+get-164128@lists.php.net to get a copy of this message
Regarding the solution below here (posted on 04-Nov-2006 12:33) using the external program junction.exe from the sysinternals collection : This solution can only make symbolic links for directories while the original symlink function can also be used for files. Another problem with any program from the sysinternal collection is that the eula needs to be accepted. The execution of the script will wait endlessly for the exec command to finish. It looks like the script freezes. If your PHP is running under the SYSTEM account (if you use e.g. WAMP), there will be no pop up window visible to accept the eula. To accept the eula, one needs to add a registry key. Add to the key : HKEY_USERS\.DEFAULT\Software\Sysinternals\Junction a DWORD value named 'EulaAccepted' with a value '1'. Maybe you need to kill the cmd.exe and junction.exe process with the task manager, but after that one can use the junction.exe utility. ---- Server IP: 69.147.83.197 Probable Submitter: 83.98.251.63 ---- Manual Page -- http://www.php.net/manual/en/function.symlink.php Edit -- https://master.php.net/note/edit/95219 Del: integrated -- https://master.php.net/note/delete/95219/integrated Del: useless -- https://master.php.net/note/delete/95219/useless Del: bad code -- https://master.php.net/note/delete/95219/bad+code Del: spam -- https://master.php.net/note/delete/95219/spam Del: non-english -- https://master.php.net/note/delete/95219/non-english Del: in docs -- https://master.php.net/note/delete/95219/in+docs Del: other reasons-- https://master.php.net/note/delete/95219 Reject -- https://master.php.net/note/reject/95219 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#164128) next »