-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
59 lines (38 loc) · 1.3 KB
/
README.txt
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
57
This is the ActiveScript SAPI for PHP.
======================================
Once registered on your system (using regsvr32), you will be able to use
PHP script in any ActiveScript compliant host. The list includes:
o. Windows Script Host
o. ASP and ASP.NET
o. Windows Script Components / Behaviours
o. MS Scriptlet control
Probably the most useful of these will be using it with the scriptlet
control, or in your own activescript host, so that you can very easily
embed PHP into your win32 application.
Installation.
=============
Build and install it somewhere; then register the engine like this:
regsvr32 php5activescript.dll
Configuration.
==============
PHPScript will not use the default php.ini file.
Instead, it will look only in the same directory as the .exe that caused it to
load.
You should create php-activescript.ini and place it in that folder, if you wish
to load extensions etc.
Usage.
======
o. Windows Script Host
Create a .wsf file like this:
<job id="test">
<script language="PHPScript">
$WScript->Echo("Hello");
</script>
</job>
o. ASP and ASP.NET
<%@language=PHPScript %>
<% $Response->Write("Hello"); %>
o. Windows Script Components / Behaviours
Use language="PHPScript" on your <script> tags
o. MS Scriptlet control
Set the language property to "PHPScript"