Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-10-2010, 04:39 PM   #1
LQ Newbie
Registered: May 2010
Posts: 2

Rep: Reputation: 0
Corn Recursive symlinking

Hi, Im using php-directory-listing to view pictures in the server, I've made some changes to support iPhone, and media rss. But I need to symlink index.php to every directory.
There are many directories, and sub-directories; I keep adding more.
So how could I use a Corn script to symlink index.php to every folder recursively?

Old 05-10-2010, 04:59 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,701

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
Make /index.php a default indexfile in your HTTPd's config. (note the absolute path instead of a slashless relative).
Old 05-10-2010, 10:40 PM   #3
LQ Newbie
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
It is a subdirectory

http://***.com/pictures/08/Jan/New Year

File needed in every folder inside /pictures is http://***.com/php-directory-listing-0.3.4/index.php

And Im using a shared linux server



cron, directory, php, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: ATP EarthDrive: A USB Flash Drive Made Of Corn LXer Syndicated Linux News 0 01-16-2009 02:51 PM
symlinking firefox dr_zayus69 Linux - Software 2 02-28-2005 04:20 AM
symlinking smbfs across a wan jse580 Linux - Networking 1 02-27-2004 02:21 AM
How to avoid symlinking libraries? Meros Linux - General 4 10-27-2002 11:47 AM
corn jobs furquan Linux - Security 1 02-22-2002 07:14 AM

All times are GMT -5. The time now is 06:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration