Is there a way to add php modules?

80 views
Skip to first unread message

Arjan Poortman

unread,
Apr 9, 2021, 6:16:04 AM4/9/21
to PHP Desktop
Hey folks,

I have a codeigniter webapp, but its depending on a custom php module. Is there a way to add a custom php module or perhaps compile/build a custom php version with the module in it, into phpdesktop?

Greets,
Arjan.

Muhammad Ridwan Hakim

unread,
Apr 10, 2021, 10:42:22 PM4/10/21
to PHP Desktop
Yes, you can. Just replace and place the custom php in php folder. I use PHP 7.4.13 now, because it doesn't work for default php version in phpdesktop on my Windows 10 Insiders.

Arjan Poortman

unread,
Apr 12, 2021, 8:27:16 AM4/12/21
to PHP Desktop
Been playing around, now have php7.4.16 installed. But the extension is still a pain in the ass. I found out that i just need to install a custom php extension as i normally would.
Then use the php.ini file, set EXTENSION_DIR and EXTENSION.

But now i have a new problem.

If i set the EXTENSION_DIR with a full url like this:

EXTENSION_DIR="/path/to/extensions"
EXTENSION = "extension.so"

Then it seems to work. But if i do this:

EXTENSION_DIR="./"
EXTENSION = "extension.so"

It fails to load the extension, because php can't find it. Normally in linux ./ <-- would point to parent directory. But not in this case.

Anyone any clue?

Op zondag 11 april 2021 om 04:42:22 UTC+2 schreef resc...@gmail.com:

Stefan Thoolen

unread,
Apr 28, 2021, 2:31:22 PM4/28/21
to PHP Desktop
My php.ini (7.3) looks like this, and that works. Maybe that will help?

[PHP]
extension_dir = "ext"
extension=openssl
extension=sockets

Op maandag 12 april 2021 om 14:27:16 UTC+2 schreef arjanp...@gmail.com:
Reply all
Reply to author
Forward
0 new messages