|
|
 |
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0  | This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

June 9th, 2008, 09:26 AM
|
|
Registered User
|
|
Join Date: Jun 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Upload_image.htm Chapter 7
Hello,
(chapter 7 page 196)
When i want to upload a .jpg upload_image.htm
image: test
username:test
upload image: 20.jpg
it doesn't show in
check_image.php and not in showimage.php
my php code was copied from website:
$image_filename = "images/" . $image_id . ".jpg";
i created /images when i upload ftp 20.jpg to /images
it also does not work in showimage.php
when i change
$image_filename = "images/" . $image_id . "20.jpg";
It shows the .jpg in showimage.php
Anyone can help me what is going wrong?
Thanks
Greetz,
Jeroen
|

June 11th, 2008, 06:49 AM
|
|
Registered User
|
|
Join Date: Jun 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I can only think of the wrong image dir?
I'm working on a live server php5 and tried several things.
I created image with create_images_table.php
so in myphpadmin there is image and made a ftp dir images
check_image.php
//upload image and check for image type
$ImageDir ="localhost/httpdocs/jeroen/images/";
tried
$ImageDir ="http://www.hostname.com/httpdocs/jeroen/images/";
tried
$ImageDir ="~/images/";
ect
anyone can tell me what the correct $ImageDir is?
|

September 3rd, 2009, 12:53 PM
|
|
Registered User
|
|
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by jeroen
I can only think of the wrong image dir?
I'm working on a live server php5 and tried several things.
I created image with create_images_table.php
so in myphpadmin there is image and made a ftp dir images
check_image.php
//upload image and check for image type
$ImageDir ="localhost/httpdocs/jeroen/images/";
tried
$ImageDir ="http://www.hostname.com/httpdocs/jeroen/images/";
tried
$ImageDir ="~/images/";
ect
anyone can tell me what the correct $ImageDir is?
|
Try to make it relevent to the php file.
i.e. if the php file is saved in "localhost/httpdocs/jeroen", then just use:
$ImageDir ="images/";
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |