Solved

Easy Q for any one who knows ISAPI

Posted on 2004-04-12
5
233 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now