jsaleiro wrote:...But what bothers me most is seing the command prompt being opened and closed everytime PHPThumb is called.....
I can only assume you configured the script correctly. I just check their site and did some recommended reading.
How are you calling the script?
Are your paths set correctly in the configuration file?
Is the script compatible with php5? (php is not backward compatible)
Etc.etc.
It might also be trying to tell you that it can't find ImagMagik if it is not installed:
- Code: Select all
// ImageMagick configuration
$PHPTHUMB_CONFIG['prefer_imagemagick'] = true; // If true, use ImageMagick to resize thumbnails if possible, since it is usually faster than GD functions; if false only use ImageMagick if PHP memory limit is too low.
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
// Windows: set absolute pathname
$PHPTHUMB_CONFIG['imagemagick_path'] = 'C:/ImageMagick/convert.exe';
} else {
// *nix: set absolute pathname to "convert", or leave as null if "convert" is in the path (location detected with `which`)
//$PHPTHUMB_CONFIG['imagemagick_path'] = '/usr/local/bin/convert';
$PHPTHUMB_CONFIG['imagemagick_path'] = null;
}
If the default XAMPP Welcome Page and it's content work then your XAMPP installation is correct and working as it should (there are demos of most things available).
The popup is telling you that a script error may be occuring and your script should be investigated more thoroughly. IIS might be more error tollerant than is the Windows ported Apache and it's XAMPP modules.
Error handling can be set in the
xampp\apache\bin\php.ini file. See the section headed:
- Code: Select all
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
You can include the error handling code in your scripts and useful reading about that can be found here:
http://www.zend.com/zend/spotlight/error.php
http://au3.php.net/error_reporting
If you can call the script from the command line then do so by
Changing
Directory to the script (CD your:\path\to\the\script\thecommmand) then issuing the command. The console window will stay open in this case.
XAMPP Control Panel should be checked for correct configuration of the modules.
A service will not start from the control panel if it is already started manually.
My advise on the XAMPP Control Panel is to set it up to start everything as a service. Then reboot so it can be initialised. Then check again all your services are indeed configured and running (green). You can then stop/deactivate the services you don't require.