On Sat, Aug 10, 2002 at 01:12:38PM -0400, Al wrote:
> I'm on a virtual host without a shell account and need execute a UNIX 
> command.
> 
> ln -s ../afile.php index.php

In a PHP script, you can do this -- if permissions are favorable:

   exec('ln -s ../afile.php index.php');


> Is there some way to do this [e.g., with a htaccess file]?

In an .htaccess file, you can put this

    DirectoryIndex afile.php


> What happens when you execute UNIX commands like the one above?  Does it 
> make a file, change the config?

It makes a link in the file system.  -s makes the link symbolic.
http://www.tac.eu.org/cgi-bin/man-cgi?ln++NetBSD-current

--Dan

-- 
               PHP classes that make web design easier
        SQL Solution  |   Layout Solution   |  Form Solution
    sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to