Forum

× Components and Libraries for Web Development, discussions, problems and suggestions

file Question How make lib for PHP

  • usbdoo
  • usbdoo's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 year 3 months ago - 1 year 3 months ago #10843 by usbdoo
How make lib for PHP was created by usbdoo
library TestLib;
{$mode objfpc}{$H+}
uses
  Classes;
  function ReturnPHP(aText:string) :string; cdecl;
  begin
    ReturnPHP:='Success   :'+aText;
  end;
  exports
    vrni;
  end.

The question is?

Can this ReturnPHP use in PHP?
I would like this lib "ReturnPHP" to load in php and execute the function in PHP
Is this possible?

This lib is written correctly for use in PHP?

How to use lib and function in php?
Last edit: 1 year 3 months ago by usbdoo.

Please Log in or Create an account to join the conversation.