Re: Newbie question about UNIX command-line directives

From: Date: Sat, 10 Aug 2002 20:41:26 +0000
Subject: Re: Newbie question about UNIX command-line directives
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-111979@lists.php.net to get a copy of this message
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

« previous php.general (#111979) next »