You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.2 KiB

  1. This is the ActiveScript SAPI for PHP.
  2. ======================================
  3. Once registered on your system (using regsvr32), you will be able to use
  4. PHP script in any ActiveScript compliant host. The list includes:
  5. o. Client-side script in Internet Explorer
  6. o. Windows Script Host
  7. o. ASP and ASP.NET
  8. o. Windows Script Components / Behaviours
  9. o. MS Scriptlet control
  10. Probably the most useful of these will be using it with the scriptlet
  11. control, or in your own activescript host, so that you can very easily
  12. embed PHP into your win32 application.
  13. Installation.
  14. =============
  15. Build and install it somewhere; then register the engine like this:
  16. regsvr32 php4activescript.dll
  17. Usage.
  18. ======
  19. o. Client-side script in Internet Explorer
  20. <script language="ActivePHP">
  21. $window->alert("Hello");
  22. </script>
  23. o. Windows Script Host
  24. Create a .wsf file like this:
  25. <job id="test">
  26. <script language="ActivePHP">
  27. $WScript->Echo("Hello");
  28. </script>
  29. </script>
  30. o. ASP and ASP.NET
  31. <%@language=ActivePHP %>
  32. <% $Response->Write("Hello"); %>
  33. o. Windows Script Components / Behaviours
  34. Use language="ActivePHP" on your <script> tags
  35. o. MS Scriptlet control
  36. Set the language property to "ActivePHP"