 |
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143
 | This is the forum to discuss the Wrox book Beginning PHP 6, Apache, MySQL 6 Web Development by Timothy Boronczyk, Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz; ISBN: 9780470391143 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

March 15th, 2011, 04:21 AM
|
|
Registered User
|
|
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Chapetr 7- check_image.php
Hi, I'm testing the check_image.php script.
When I push Preview button, after setting the filters, I don't see the preview image...  . I always see the placeholder image. It seems that
Code:
$imagename = 'image_effect.php?id=' . $image_id . '&e=' .
$_POST['effect'];
Or
Code:
<img src="<?php echo $imagename; ?>" style="float:left;">
doesn't work. I don't know how can I do. My php version is 4.4
P.S. $dir is the same for check_image.php and image_effect.php
Last edited by alextalamonti; March 15th, 2011 at 05:47 AM..
|
|

March 17th, 2011, 05:54 AM
|
|
Registered User
|
|
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok! I resolved it myself. 
I installed PHP 5.2!
|
|

April 27th, 2011, 04:09 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Chapetr 7- check_image.php
Did you change the code? I cant make it to work with PHP 5.2!
|
|

August 17th, 2013, 11:33 AM
|
|
Registered User
|
|
Join Date: Aug 2013
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have same issue with PHP 5.4.6 can you help me somehow?
|
|

October 27th, 2013, 12:03 PM
|
|
Registered User
|
|
Join Date: Oct 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I think I got the answer, in image_effect.php at the bottom of the code:
PHP Code:
// show the image header('Content-Type: image/jpeg'); imagejpeg($image, '', 100); ?>
Should be:
PHP Code:
// show the image header('Content-Type: image/jpeg'); imagejpeg($image, NULL, 100); ?>
Because we can't leave this second parameter filename as '' instead use NULL and try again uploading an image.
Hope it works :)
Last edited by register_null; October 27th, 2013 at 12:17 PM..
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| chapter 7 check_image.php |
hozdaman |
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 |
1 |
December 24th, 2010 05:02 AM |
| Ch 7 check_image.php |
mattcw |
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 |
1 |
October 10th, 2006 12:26 PM |
| begin php & mysql - chapter 12, user_form.php |
jon_stubber |
Beginning PHP |
1 |
March 9th, 2006 10:57 AM |
| Chapter 7 check_image.php, undefined variable |
Ron_Bingham |
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 |
2 |
June 3rd, 2005 10:31 PM |
| Error: movie.php & commit.php on p182-186, ch6 |
willburke |
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 |
0 |
October 12th, 2004 02:48 PM |
|
 |