It happens that I need the GD, SQLite and a few more extensions for php 5.1. But I can't find out where to get them.
I am using WinBinder to develop some desktop applications for Windows with php. The minimal php 5.1 pack has the winbinder extension only. I need other extensions for enhanced features like image editing or data storage.
Can anybody help? I really need this very much.
PS: I want to get pre-compiled DLLs if posible.
Thanks and Regards,
Masnun
Check here for your specific version: http://www.php.net/releases/
The 'Windows Binary' link will provide a .zip file containing the ext folder where you will find all standard extensions including php_gd2.dll and the 'Collection of PECL modules...' link will allow you to source additional extensions you may require.
You will still need to enable these in your php.ini as described in other comments.
Hope this helps,
Jason.
GD Installation
To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.
In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.
Enhance the capabilities of GD to handle more image formats by specifying the --with-XXXX configure switch to your PHP configure line.
http://www.php.net/manual/en/image.installation.php
Related
I downloaded WINCACHE-1.3.7.4.tgz from the PECL download page. Unpacking it i find many a C orientated source file. Compiling from source in Linux i have some experience in BUT none at all in Windows (i am running Windows 7).
The instructions on PHP.net's WinCache pages does not seem to match the files extracted from the `.tgz'
I have looked at suggested questions
Creating Windows DLL from C++ source files
Creating php DLL from pecl source files
but i have NO idea where to actually start off.
And thus, does anyone know how i would build WinCache .DLL from the provided source? (if at all easily possible)
Do you really need to build this extension from source? If not, you can download precompiled DLLs here. If yes, you have to follow this tutorial for compiling PHP extension on Windows. Basically, you have to build PHP and it will also compile extension that you will enable. After successful compilation you should be able to find required dll and use it with your running PHP.
But another question is for what do you need it? What version of PHP do you use? If 5.5+ you should consider OPCache instead WinCache.
Since the Zend Opcache extension is now in the core PHP product, the WinCache opcode cache is disabled by default. As of PHP 5.5, the opcode cache portion of WinCache is deprecated, and will be removed in a future release of the WinCache extension.
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 am trying to use Codeigniter's image manipulation class which of course requires a php image library.
I know I have gd library enabled on my server from running phpinfo();
However, I need to specify the path to the image library in codeigniter, and I don't know where it is installed! The server is under someone else's jurisdiction, so is there any way at all to find out where the gd library is installed without using the command line? It is a linux server.
Thanks.
GD is compiled with PHP, and is used internally, there is no need to supply a path for GD what so ever, on CI's Manual it states:
library_path : Sets the server path to your ImageMagick or NetPBM library. If you use either of those libraries you must supply the path.
Hint: you are not using ImageMagick or NetPBM
If you mean ImageMagick, you can locate the binaries you can try the following command:
locate imagemagick
but they are usually located in /usr/bin or /usr/X11R6/bin/
did you try phpinfo();
you will get the path to where php installed.
if you can access server
try to search for gd.so
http://www.linuxquestions.org/questions/linux-newbie-8/gd-library-path-145032/
http://php.net/manual/en/image.installation.php
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.
I am using a Windows XP Home Edition. I need to install a few extensions to PHP -- memcache, APC, .etc. And I would very much like to use PECL to make this happen. The problem is PECL takes it for granted that I will have certain programs on my computer. On another post, I read, for instance, that you need to have Microsoft Visual Studio C++ installed on your machine. However, the new version of Visual Studio, which I downloaded, does not have msdev.exe and instead uses vcbuild.exe, which has a completely different api and fails to compile the .dsp files that come with these modules.
So I tried to find a script that would upgrade the dsp to work with vcbuild.exe...and it turns out vcbuild.exe can do that, but of course that didn't pan out.
Another thing I tried was to find a make script for Windows (nmake2make). But there was no make file in the module's root folder.
I tried also downloading Cygwin and MinGW in hopes of finding a build script that would work as simply as in *nix operating systems, but to no avail.
How else do I use install PHP extensions on a Windows machine? Can anyone help me out of this predicament?
For all peoples coming here to download the dll extension files.
This is the link to the PHP extension download link http://windows.php.net/download/
And this is a list of PHP extensions to download: http://pecl.php.net/package-search.php
For core extensions, or if you cant find any on pecl.php.net, download PHP from a zip http://windows.php.net/download/ and look inside of /ext and copy them to your local php /ext folder.
The only way I can think of is: manually. Yeah, I know, but this is pretty easy comparatively.
If you have the compiler, then you can at least compile an extension if you have the source. Otherwise you're stuck with trying to locate a binary distribution (like me).
Here's what you do, from what I understand:
Put the extension library folder under PHP's install path. On my computer this is C:\xampp\php\ext. Search in your PHP.ini for "extension_dir" to find what yours is.
Edit php.ini to load the extension.
Find ; Dynamic Extensions ;.
Add line extension=my_lib.dll
This should do it. Otherwise you should probably search for an in-depth guide on manual installation.
For memcache you will need the memcache server located here -> http://code.jellycan.com/memcached/ and download the win32 binary
Never used APC :P I use eAccelerator0953_5.2.6 to cache the code