You are here: How to create symbolic link within a PHP script? « PHP Programming Language « IT news, forums, messages
How to create symbolic link within a PHP script?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация