Solved

Easy Q for any one who knows ISAPI

Posted on 2004-04-12
5
235 Views
Last Modified: 2011-10-03
0
Comment
Question by:DavidBirch2dotCom
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

825 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