php-windows Digest 21 Sep 2002 21:28:47 -0000 Issue 1350
Topics (messages 15929 through 15932):
Re:Image resizing in PHP
15929 by: Neil Smith
Installing PHP as SAPI module
15930 by: Davy Obdam
gd library
15931 by: kivanc urgancioglu
Re: php_xslt.dll
15932 by: Marco Siegl
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi - I got to the bottom of this a couple of weeks ago so its still fresh :
Once you have GD installed, try this
$newwidth=120;
// New image width
$newheight=150;
// New image height
$imgurl="/path/to/your/image/file.jpeg";
// Wherever you have stored your image, eg /tmp
$size=GetImageSize($imgurl);
// Acquire image width & height from image file : this is an array
(0=width, 1=height)
$im1=ImageCreateFromJPEG($imgurl) or die("Could not create image");
// Get image identifier or quit
$im2=ImageCreate($newwidth,$newheight);
// Make new blank image identifier to receive resized image
ImageCopyResized($im2,$im1,0,0,0,0,$newwidth,$newheight,$size[0],$size[1]);
// Does the hard work
header("Content-type:image/jpeg");
// Tell browser the next data is an image
ImageJPEG($im2);
// Actually output the image you just created
Cheers,
Neil Smith.
At 17:03 20/09/2002 +0000, you wrote:
>Message-ID: <[EMAIL PROTECTED]>
>Date: Fri, 20 Sep 2002 07:56:49 -0700 (PDT)
>From: kivanc urgancioglu <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>Subject: thumbnails
>
>Hi,
>How can I create thumbnails from image files like jpeg
>,gif etc.I don't know how to install gd library in
>windows.Can anyżne help me?
--- End Message ---
--- Begin Message ---
Hi People,
I have Windows XP pro running Apache 2.0.40 and PHP 4.2.3 as a CGI
module, installed with the installer i downloaded from php.net. Now i ve
heared that installing PHP as a SAPI-module is alot better and faster..
more secure?. Whats steps do i need to take to instal PHP as a SAPI
module with Apache 2.0.40. Thanks already for the help.
Greetings,
Davy Obdam
mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
How can I install gd library support for php under
windows?
I get the zip file for gd but I couldn't understand
how to install it.
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--- End Message ---
--- Begin Message ---
hi larry,
please explain, what in particular is wrong with your php-xslt installation?
maybe you can first of all try http://www.dependencywalker.com to check if all needed
.dlls are there. if you still need the new libexpat.dll you have to go to
http://sourceforge.net/projects/expat/ - it's james clarks expat page on sourceforge,
and there you can get the new libexpat.dll in the latest expat archive.
you can also view php source code of my running xslt processing script, if you go to
http://www.remslakecity.de/source.php?url=/xslt/xp.php
i wish you all the best,
- marco
<mail>[EMAIL PROTECTED]</mail>
<url>http://www.remslakecity.de</url>
----- Original Message -----
From: larryv
To: [EMAIL PROTECTED]
Sent: Saturday, September 21, 2002 10:26 PM
Subject: php_xslt.dll
Did you get XSLT to work?
I'm having the same problem.
> I get this 'module not found'-errors all the time and could not find a
> solution up to now.
> i tried everything this group recommends, but the problem gets weirder and
> weirder.
> I even tried DependencyMaker and it says a libexpat.dll is missing. This
dll
> is not included to the php-4.2.3-distribution. (somebody suggested
expat.dll
> will do - NOT on my machine)
>
> > i found a rersolution to the php_xslt.dll extension installting problem
>
> you're lucky!
>
> > in your php.ini, you have to write: extension_dir = c:/php/extensions
>
> would be d:/php/extensions on my machine. does NOT solve the problem.
>
> > copy the 4 following .dll's to your windows/system32 directory
> > - php/php4ts.dll
> > - php/extensions/php_xslt.dll
> > - php/dlls/expat.dll
> > - php/dlls/sablot.dll
>
> all done. does NOT solve the problem.
>
> I am using IIS 5 on WIN2000/SP3 . But this is definitely not a
> server-related problem i think.
> To me it seems very much as a bug in the php-module-implementation or in
the
> php_xslt.dll itself.
>
> Btw: is there somehing like an official installation procedure?
>
> any help would be very appreciated.
> [EMAIL PROTECTED]
>
>
>
>
>
------------------------------------------------------------------------------
--- End Message ---