cgi-bin question

I am a new programmer to do cgi/ perl
Should my cgi and perl must be placed in cgi-bin

how to point to the right directory, if all related sub-directory in the same level
main_dir -----cgi-bin
         ----- images
         ----- html
If some path , such as  .\.\ abc.gif  is not workable in linux and unix, but workable in NT.
How to point to the right directory in Linux or unix ?

chinamotionAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

christopher sagayamCommented:
use always / for path info

normally cgi scripts can be placed in any directory
0
chinamotionAuthor Commented:
Sorry, I make some error in my question.

The actual question info is that:
If some path , such as  ././images/ abc.gif  is not workable in linux and unix, but workable in NT.


How to point to the right directory in Linux or unix for upper, upper level?
if cgi-bin,images and html sub-directory in the same level.
0
christopher sagayamCommented:
./ goes to the upper level
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KennyIT Application ExecutiveCommented:
In Unix/Linux, it is ../ to go to the upper level. (e.g ../cgi-bin/script.pl).

NOT ./
0
BigRatCommented:
zxv250 is correct ./ means "from here", wherever "here" is!

If you are using Apache look at the directives in the conf file (there is a lot of comment explaining how it works) and also consider using rewrite rules. I do the latter to implement a virtual file store.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.