Posted by Conrad on 03/25/06 05:32
Hi, it seems that I have the following issue when trying to create a
symbolic link within a script:
FROM COMMAND LINE: The owner is set to myself. Thus, it works.
FROM WEB PAGE: It doesn't work as expected.
I know that it runs as one user at the command line and a different
user from the web page. Thus, is it possible to do the following
within the script:
o switch to the correct user
o create the symbolic link
o switch back web page user
BTW, I was using the following command:
exec ( "ln -s " . dirname( SITE_ROOT ) . "/common_directory/* " .
dirname( SITE_ROOT ) . "/new_directory" );
Thanks in advance,
-Conrad
[Back to original message]
|