p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 9th, 2008, 09:26 AM
Registered User
 
Join Date: Jun 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 11th, 2008, 06:49 AM
Registered User
 
Join Date: Jun 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old September 3rd, 2009, 12:53 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jeroen View Post
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/";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"../Chapter 6/XSLT/IE/Figure3.htm" - missing image mark4asp BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 0 October 31st, 2007 09:12 AM
Chapter 6 default.htm file wrong? billrocker BOOK Beginning Expression Web ISBN: 978-0-470-07315-5 8 July 3rd, 2007 04:00 PM
book.htm problem in chapter 04 50000 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 5 May 16th, 2006 07:22 PM
Chapter 13: IE_NN_Menus.htm mcange BOOK: Beginning JavaScript 2 March 19th, 2005 09:17 AM
how to use recordType in htm/asp gilgalbiblewheel Classic ASP Databases 11 August 15th, 2004 01:06 AM



All times are GMT -4. The time now is 06:13 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc