php-windows Digest 3 Oct 2001 10:06:05 -0000 Issue 786

Topics (messages 9654 through 9660):

Working with images
        9654 by: Alex Busquets
        9655 by: Alex Busquets
        9658 by: Iván Milanez Castellanos

PHP Application runnig in windows
        9656 by: Sethereth
        9657 by: GF

Compiling trouble.
        9659 by: A.J. Ostman

$PHP_SELF incorrect contents
        9660 by: Tony Bailey

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 ---
I trying to manipulate images, copy, resize I know for do it, I need GD 
libraries, I have this libraries into my server, but I have this error 
always.

Fatal error: Call to undefined function: imagecreatefromjpg() in 
C:\apache\htdocs\lignea\imatge.php on line 15

How I can define de function

The code script is:

<?php

define("GIF", "1");
define("JPG", "2");
define("PNG", "3");
define("SWF", "4");

$size = GetImageSize($fitxer);

$ext=$size[2];

if($ext == GIF)
$im = ImageCreateFromGIF($fitxer);
else if($ext == JPG)
$im = ImageCreateFromJPG($fitxer);
else if($ext[2] == PNG)
$im = ImageCreateFromPNG($fitxer);
else
print("Imatge no suportada!");

if(!$im)
print("Error al obrir la imatge");

unlink($fitxer);
if($ext[2] == GIF)
ImageGif($im);
else if($ext[2] == JPG) {
Imagejpeg($im,'',20);
ImageDestroy($im);

}

?>

What happens? Thanks

--- End Message ---
--- Begin Message ---
I trying to manipulate images, copy, resize I know for do it, I need GD 
libraries, I have this libraries into my server, but I have this error 
always.

Fatal error: Call to undefined function: imagecreatefromjpg() in 
C:\apache\htdocs\lignea\imatge.php on line 15

How I can define de function

The code script is:

<?php

define("GIF", "1");
define("JPG", "2");
define("PNG", "3");
define("SWF", "4");

$size = GetImageSize($fitxer);

$ext=$size[2];

if($ext == GIF)
$im = ImageCreateFromGIF($fitxer);
else if($ext == JPG)
$im = ImageCreateFromJPG($fitxer);
else if($ext[2] == PNG)
$im = ImageCreateFromPNG($fitxer);
else
print("Imatge no suportada!");

if(!$im)
print("Error al obrir la imatge");

unlink($fitxer);
if($ext[2] == GIF)
ImageGif($im);
else if($ext[2] == JPG) {
Imagejpeg($im,'',20);
ImageDestroy($im);

}

?>

What happens? Thanks

--- End Message ---
--- Begin Message ---
Alex: the function ImageCreateFromJPG() does not exist... the function you
are trying to use is ImageCreateFromJPEG().

This information is located in the online manual in the Image manipulation
section of the function reference.

Later


"Alex Busquets" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I trying to manipulate images, copy, resize I know for do it, I need GD
> libraries, I have this libraries into my server, but I have this error
> always.
>
> Fatal error: Call to undefined function: imagecreatefromjpg() in
> C:\apache\htdocs\lignea\imatge.php on line 15
>
> How I can define de function
>
> The code script is:
>
> <?php
>
> define("GIF", "1");
> define("JPG", "2");
> define("PNG", "3");
> define("SWF", "4");
>
> $size = GetImageSize($fitxer);
>
> $ext=$size[2];
>
> if($ext == GIF)
> $im = ImageCreateFromGIF($fitxer);
> else if($ext == JPG)
> $im = ImageCreateFromJPG($fitxer);
> else if($ext[2] == PNG)
> $im = ImageCreateFromPNG($fitxer);
> else
> print("Imatge no suportada!");
>
> if(!$im)
> print("Error al obrir la imatge");
>
> unlink($fitxer);
> if($ext[2] == GIF)
> ImageGif($im);
> else if($ext[2] == JPG) {
> Imagejpeg($im,'',20);
> ImageDestroy($im);
>
> }
>
> ?>
>
> What happens? Thanks
>


--- End Message ---
--- Begin Message ---
Can I run a client acplication through php website after his confirmation?
Please help. If yes which function does it?

Thx for help

Arek Marczyk


--- End Message ---
--- Begin Message ---
http://www.php.net/manual/en/ref.exec.php

Gaylen Fraley
PHP KISGB (Guestbook) http://www.gaylenandmargie.com/publicscripts/


"Sethereth" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can I run a client acplication through php website after his confirmation?
> Please help. If yes which function does it?
>
> Thx for help
>
> Arek Marczyk
>
>


--- End Message ---
--- Begin Message ---
PHP users-> There has got to be a techie among you who has compiled PHP
on the WIN32 platform. I am having some troubles getting it to compile
error free. If someone has some experience, please contact me. Thank
you!

-A.J. Ostman
 [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Running PHP 3.0.16 under Win2k and am having a problem with $PHP_SELF I've never seen 
before.

As an example, the correct path for the current page (as shown by $SCRIPT_PATH) is:

/calls

the full current page is:

/calls/index.php

but if I use $PHP_SELF within that page it returns (ie. if used as an href within the 
page itself)

/calls/index.php/calls

Which means of course that I'm having big trouble navigating anywhere!

Server is Xitami - all was okay under Win98 in past.

Anyone any ideas?

I tried PHP4.0.6 but all's I get are blank pages returned (PHP.EXE is def being loaded 
when called and straight 
HTML is returned okay) but that's another problem. I've seen this reported before but 
no solutions I can find.

Tony





--- End Message ---

Reply via email to