TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Libraries & Extensions (http://www.talkphp.com/libraries-extensions/)
-   -   Installing GD2 in XAMPP (http://www.talkphp.com/libraries-extensions/1249-installing-gd2-xampp.html)

Sam Granger 09-28-2007 12:49 PM

Installing GD2 in XAMPP
 
Hello guys,

I'm having some troubles setting up gd2 in XAMPP. I've got the php_gd2.dll in my ext folder and my php.ini file is pointing to the correct extension folder. I have removed the ';' infront of php_gd2.dll and it's still not working. I even have tried restarting apache... Does anyone here know what I am doing wrong?

Sam

Sam Granger 09-28-2007 12:56 PM

Problem fixed. I found out that php was loading a very old php.ini file, how can I change the file it loads? I replaced the file for the meantime but would rather change the file location.

Wildhoney 09-28-2007 01:08 PM

You can change the location of php.ini by setting it in httpd.conf on Apache - alongside the PHP definition.

Code:

PHPIniDir "C:/php"
LoadFile "C:/php/php5ts.dll"
LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php .php


Sam Granger 09-28-2007 09:59 PM

hey cool, thanks! :)

cherries 10-02-2007 04:24 PM

or you could just do this:
PHP Code:

<?php
    dl
('GD2.dll');
    
    
// [ CODE HERE ]
?>



All times are GMT. The time now is 07:49 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0