-
Notifications
You must be signed in to change notification settings - Fork 16
/
phpApp.pas
56 lines (42 loc) · 1.17 KB
/
phpApp.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{*******************************************************}
{ PHP4Delphi }
{ Custom PHP extension application }
{ }
{ Author: }
{ Serhiy Perevoznyk }
{ serge_perevoznyk@hotmail.com }
{ http://users.chello.be/ws36637 }
{*******************************************************}
{$I PHP.INC}
{ $Id: phpApp.pas,v 6.2 02/2006 delphi32 Exp $ }
{$DENYPACKAGEUNIT}
unit phpAPP;
interface
uses
Windows, SysUtils, PHPAPI, phpModules;
implementation
{ InitApplication }
procedure InitApplication;
begin
Application := TPHPApplication.Create(nil);
end;
{ DoneApplication }
procedure DoneApplication;
begin
try
if Assigned(Application) then
begin
Application.CacheConnections := false;
Application.Free;
Application := nil;
end;
except
end;
end;
initialization
if not PHPLoaded then
LoadPHP;
InitApplication;
finalization
DoneApplication;
end.