I'm new to php and I'd like to use Judy Arrays on windows and I'm having troubles with installation.
I followed steps on page http://php.net/manual/en/judy.installation.php and I get to the step where I've got "Judy.lib" file but I don't know what to do next. It says
"copy this into the php-sdk library folder and name it "libJudy.lib"
Then copy the include file "judy.h into the php-sdk includes folder."
but I have no idea what "php-sdk library and includes folder" is
Those instructions are for building from source code.
If you don't want to compile from source you can try downloading a precompiled DLL from the PECL page for the PHP Judy extension, drop it in your PHP\ext\ folder, and enable it in the appropriate php.ini file.
This process is documented in the PHP manual and referenced in the installation instructions for the PHP Judy module that you mentioned in your question.
Unfortunately, it looks like precompiled DLLs for the latest version of PHP Judy are only available for PHP 5.3, 5.4, 5.5, and 5.6.
Related
I'm on Windows 10, and I really need to install this PHP extension in order to use advanced GeoPHP methods. I've already asked about this previously here. There is no available DLL for this extension, and the instructions for installation on GitHub are for Linux. What I've understood is that I need to recompile PHP with the extensions in the ext folder, so I'm planning on doing that using these instructions. However, I've previously installed PHP through XAMPP.
My question is, will these instructions work with this? If yes, where can I find the PHP source files? I'm not quite sure what they look like, and googling "PHP source files location" gives me stuff about actual PHP files, not the ones used for installation. I just want to make sure. Thanks.
No, you do not have to recompile PHP. The module you stated is not baked into PHP but dynamically included.
Just build the module and include it like
extension=geos.dll
The Github link you posted does have instructions...
I've tried a lot of things given over the internet to setup SAPRFC in Windows but they all are talking about PHP 5.2 version but everyone knows that we are using PHP 5.x nowadays.
I'm running Xampp server where my PHP version is 5.4.4 and I need to communicate with SAP server through PHP script. I've tried the procedure of copying librfc.dll in system32 folder and php_saprfc.dll in php/ext folder and also modification of php.ini but it doesn't help me.
I have to following instructions:
Installation:
Extract zip file saprfc-$VERSION$-$PHP_VERSION$.zip
Copy php-saprfc.dll to your extensions directory (e.g. C:\PHP\extensions)
Edit php.ini file (in windows system directory, e.g. C:\WINNT, C:\WINDOWS) and add line: 'extension=php_saprfc.dll'
Copy librfc32.dll (from SAPGUI install CD) to the Windows system directory or simple install SAPGUI on your machine.
Compilation:
Extract php sources to C:\PHP-x.y.z
Extract php win support files to C:\PHP-x.y.z\win32
Install RFCSDK to C:\PHP-x.y.z\rfcsdk
Copy SAPRFC sources to C:\PHP-x.y.z\ext\saprfc
Copy php4ts.lib or php5ts.lib (from PHP binaries) to C:\PHP-x.y.z\win32
For PHP5 copy saprfc.dsp5 to saprfc.dsp
Open project C:\PHP-x.y.z\ext\saprfc\saprfc.dsp in Microsoft Visual C++ 6.
Under Tools|Option|Directory set path for Include files and for Library files:
(C:\PHP-x.y.z\win32\include; C:\PHP-x.y.z\rfcsdk\include;
C:\PHP-x.y.z\win32\lib; C:\PHP-x.y.z\rfcsdk\lib)
Set active configuration to "saprfc - Windows_TS" (under Build menu)
Build php_saprfc.dll.
Compiled DLL you find in C:\PHP-x.y.z\Release_TS directory
But I'm not getting the compilation part.
The newest version is from 2009 and can be found here. For newer PHP versions you have to compile the extension yourself (at least the docs say so). Seems like the devs didn't make the jump to the newer versions because of the compiler needed. In the compilation docs it still says Microsoft Visual C++ 6.0. AFAIK modern PHP uses 9.0. So you propably need to tinker a bit with it. Or you might ask in the SAP forums if someone did the necessary work already.
You can download precompiled version here:
https://sourceforge.net/projects/saprfcsapnwrfc/files/
I'm attempting to create a PHP extension/wrapper for a C library. I have followed this tutorial Extension Writing Part I very closely and have bought the book "Extending and Embedding PHP" from the same author.
I am working on a MAC and have MAMP installed.
I have downloaded and installed make-3.82, autoconf-2.69, automake-1.9 and libtool-2.4.2 without problems.
I have created a hello folder in the Applications/MAMP/bin/php/php5.4.4/lib/php/extensions folder and have created the files listed in the tutorial above exactly as instructed.
I did these three steps:
$ phpize
$ ./configure --enable-hello
$ make
Again no problem.
But when calling the php -r 'echo hello_world();' I get an 'undefined function hello_world' error.
I know that several of the steps listed above are not the recommended way to do this.
Am I in the wrong folder for extensions? The extensions folder is not the folder recommended but I couldn't find an ext folder anywhere.
Do the more current versions of these additions work the same as the old ones or do I need to go back to the earlier versions?
Is there a more current set of instructions for putting together an extension for PHP that anyone can recommend?
On further research I found that my MAMP install is missing an includes directory tree which contains the ext folder referred to in all of the current documentation. I don't know if that is simply an upgrade or not but I am going to abandon this and switch to a Linux environment for development.
EDIT:
So having fought with the same problem on Linux I discovered a file in etc/php5/apache2/conf.d called the name of the existing extension with the same extension = {extension}.so line that is also in the php.ini. When I duplicated that file with my own extension information the extensions began to function. This file was not anything I saw referred to in any of the documentation I reviewed. I do not know if there is a corresponding file in the MAMP environment that was also causing the issues there.
I have downloaded PHP extension files from http://sourceforge.net/projects/ffmpeg-php/
There are lots of files in the package. I want to know that how can I use this as a PHP Extension. I thought they will provide .dll files as other extension. But in this case there are lots of file,
I am running on windows 7, PHP 5.2.9, Apache 2.2.15
Any help would be appreciated.
The files you downloaded are the source code for ffmpeg-php. They need to be compiled and since you're on Windows, that might not be that simple.
Instead, follow these instructions: http://ironlasso.com/install_ffmpeg-php_windows.html. The link include a link to a pre-complied version which will make your life a whole lot easier.
I have just downloaded the php pspell extension.
But unlike the other extension it does not have .dll files to place in php ext dir. It contains lots of files.
So How can I Compile those files and create a dll file from that source?
I am running on windows.
Just use a WAMP stack like WampServer, they come with extensive extensions (pspell included) and you just need to enable it in one click.
See the instructions in the PHP wiki.