Fred Montier Posted January 6, 2025 Posted January 6, 2025 Nowadays, basically all ruled by Wordpress. Became the dominant format since availability of endless resources, templates, plug-ins and platforms and services. Integrating the basic PHP to uniGUI looks like a great feature. But.. all stuff to Delphi and script PHP interpreter seams to be frozen in time since version 5.x.x When I ask here, I had already search all possible solutions. So, already StackOverflow, ChatGPT, GitHub and ALL Delphi sites, Alcinoe, Defunct psvPHP pack, PHPRunner. Indy ISAPIRunner with PHP support etc. If you have something to solve the problems with 8> dll version with Delphi, thanks in advance. And of course, I know that you can run the script in line command and load in uniGUI in the uniURLFrame. That can be done, by the way, very easily. But I don't like that solution. My Goal: embed the DLL (as the old php4Delphi.dll) and run the script loading the result in uni<>Frame. Since php 8> not allow this, only the older versions, I'm stuck in the line command option only. Seams to make things too slow to large projects. And never will work with wordpress, "No way, jose". Any PHP with Delphi expert around with some suggestions ? Thanks in advance. PS: I can make it work the OmniSecure Httpd Server that is almost 20 years old solution with the latest version of PHP. Certainly that can be done with "indy-unigui" server. See image below. Numbers speak louder. Unigui + PHP is really "da'bomb for shizell ma nizell" Quote
Fred Montier Posted January 9, 2025 Author Posted January 9, 2025 Sharing some progress wiith PHP adaptation to uniGUI standalone, "the lazy solution", not what I thing as the best mas doable. Finnaly could trigger ajaxrequest at the client component (save page) PHP4uniGUI.mp4 Quote
Fred Montier Posted January 9, 2025 Author Posted January 9, 2025 For those curious about it, I use the direct line cmd from PHP script to HTML. Then some adjust in unigui Server. And after , some php link interception in the pages rendered. I had to use another http indy server... but.. for small stuff, works ok. This is not a practical solution to integrate wordpress for a lot of reason. You could install WAMP/Xamp and call all from unigui server as a sidekick. But the problem is that PHP is only scripted to run in server side. So you have to adjust to trigger ajax in the client side to return to the client side component and then back to unigui. It's no pretty ... but is family... (a old joke). As I said, php has a huge... gigantic code repository. This is more a proof of concept. If it has a demand, I can make a wholesome project. For instance, all social login are easily available to uniGUI, and a huge number of API services and more. I know that you can do also in Delphi but if is done and has a working demo already, why waste time just with some function and a component ? Quote
Ron Posted January 11, 2025 Posted January 11, 2025 Interesting indeed. Which Delphi version do you use? Could you share a simple proof of concept project, so we can try it out? Quote
Fred Montier Posted January 13, 2025 Author Posted January 13, 2025 It's not in Delphi, is uniGUI the way it handles the request and some PHP configuration. You can make it with simple Indy (10) HTTP server since Delphi 7. Get PHP latest version and you process any PHP script to result in a html page. The problem is the inside link in the rendered page and feed it forward the chain in uniGUI and call it back in PHP, without third parties component or nothing out of the regular receipt. But for sure uniGUI Team should have a look on this that should be more interesting and gather more outside attention. The goal is to get a lot of stuff made for PHP and reuse in uniGUI. More complex stuff is way to difficult. Not investing my time on this because people here has no interest and is more focused in "component" approach to every problem. In fact, is not a PHP crowd. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.