need help on imagecreatefromjpeg
- From: uncleroxk <uncleroxk@xxxxxxxxx>
- Date: Thu, 2 Oct 2008 00:47:02 -0700 (PDT)
Hi, i am trying to resize the uploaded image , but the
imagecreatefromjpeg($sourcefile) doesn't seems to work for jpg file.
when upload jpg/jpeg --notworking
-----------------------------------------------------
<?php
$sourcefile = $_FILES['file']['tmp_name'];
//when echo will show --example: tmp\php119.tmp
echo $sourcefile;
$workingsource = imagecreatefromjpeg($sourcefile);
//show up nothing???????
echo $workingsource;
?>
when upload gif --working
-----------------------------------------------------
<?php
$sourcefile = $_FILES['file']['tmp_name'];
//when echo will show --example: tmp\php119.tmp
echo $sourcefile;
$workingsource = imagecreatefromgif($sourcefile);
//show me the image resource --example: Resource id #6
echo $workingsource;
?>
if you know why is it not working, please tell me..
Thanks in advance!
.
- Prev by Date: Re: SESSION array problems
- Next by Date: Showing query time and closing connection id
- Previous by thread: How to throttle requests of an API?
- Next by thread: Showing query time and closing connection id
- Index(es):
Relevant Pages
|