Re: Newbie question about UNIX command-line directives
| From: | Al | Date: | Sun, 11 Aug 2002 16:33:55 +0000 |
| Subject: | Re: Newbie question about UNIX command-line directives | ||
| References: | 1 2 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-112040@lists.php.net to get a copy of this message | ||
Appreciate the feedback, but.....
The .htaccess approach appears to fit my situation best; but, I've not been able to get it to work.
I have a folder with a php script and that folder has several sub-folders each with a small configuration script. I'd like the entry point to be a subfolder and main script [in the parent folder] to be "symbolically" executed.
I'm familiar with the DirectorIndex and use it often, but only for defining the default file for the particular folder.
Could I be doing something wrong? Or is there another htaccess directive that may work?
Thanks.........
Analysis & Solutions wrote:
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.phpIn 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 thisDirectoryIndex afile.phpWhat 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