Solved

Easy Q for any one who knows ISAPI

Posted on 2004-04-12
5
236 Views
Last Modified: 2011-10-03
0
Comment
Question by:DavidBirch2dotCom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
tanghz earned 20 total points
ID: 10806350
Hi, MAX_PATH is in the Windows's unit. You need
Uses Windows
it should be fine , then.

As to your original question, you certainly can access any file within the directory where you put your CGI program. If you are allowed to put CGI program there, I can not see why you can not put other files there?
If you want to access other files out of there, it seems a hacker's function. I believe that shared or public server is not allowed unless you have the rights of Admin.
0
 
LVL 7

Author Comment

by:DavidBirch2dotCom
ID: 10807042
Thanks :) that’s fixed it

I’m not trying to access anything outside of the CGI bin, however I just didn’t know how to access the stuff in the CGI bin - now I do :)

However I am still trying to figure out how I could cope with multiple simultaneous requests for the same file.... any ideas?

Thanks

David
0
 
LVL 7

Author Comment

by:DavidBirch2dotCom
ID: 10807047
post on the old Q for the points
0
 
LVL 1

Expert Comment

by:tanghz
ID: 10807159
Normally, different requests should reside in different threads.
You just need to
1. var CS: TRTLCriticalSection;
   and
InitializeCriticalSection(CS) in the OnFormcreate event,

2. put the read file code between the
  EnterCriticalSection

and

 leaveCriticalSection;

This should work.

The code between this clock can only be processed for one thread within one Process (or application).
More details can be obtained from help

Good luck.
0
 
LVL 7

Author Comment

by:DavidBirch2dotCom
ID: 10807307
thanks tanghz :) IT WORKED :)

i assume I can use multiple TRTLCriticalSection's? just by using other varibles ?

u get the points, post somthing in this question to get the points

http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20946761.html

David
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Downloading email attachments 2 85
Delphi Yen format 3 62
Firemonkey webbrowser scrollbars ? 1 57
Dev express lookupcombo 3 46
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question