Recent

Author Topic: Using pascal programs as backend for PHP based webpages?  (Read 12859 times)

devEric69

  • Hero Member
  • *****
  • Posts: 648
Re: Using pascal programs as backend for PHP based webpages?
« Reply #45 on: September 18, 2021, 10:28:13 am »
AMHO, use this https://wiki.freepascal.org/fpWeb_Tutorial or use this https://www.php.net/manual/fr/index.php.

Mixing the two isn't recommended, if its possible: be aware that mixing the 2 languages means that the CGI-Pascal-fpWeb named session - said PASCAL_SESSID, or whatever you want - knows how to retrieve the Php named session - said PHP_SESSID, or whatever you want - in order to be assigned with its\some web session variables (using embedded COOKIE or URL's GET or URL's POST shuttle), or vice versa. Absolutely possible. But this complicates things.

nb1: Php was created as a *.htm template handling laguage. For information, fpWeb has a *.htm template engine named fpTemplates.
nb2: CGI-Pascal-fpWeb is just a console program.
« Last Edit: September 18, 2021, 12:07:07 pm by devEric69 »
use: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

 

TinyPortal © 2005-2018