Current location: Hot Scripts Forums » Programming Languages » PHP » Display a dynamic image


Display a dynamic image

Reply
  #1 (permalink)  
Old 04-27-04, 09:21 AM
Bonzo's Avatar
Bonzo Bonzo is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 340
Thanks: 0
Thanked 0 Times in 0 Posts
Display a dynamic image

Starting to get very feedup :

I have a folder and in that folder I have other folders "thumb" & "norm". I also have a script that takes the image from norm folder modifys it and saves it in thumb folder.

All this works great and the next problem I have had before.

PHP Code:

  $src $save_path.$dirArray[$i];

  echo 
'<img src = "',$src,'">'
This outputs on the html page generated by the code a box about the right size for the image with a red x in it ( and the same for the other images in the array ).
The html code on the page is <img src = "thumb/07048.png"><img src = "thumb/banner.png"><img src = "thumb/1.jpg">

This would say to me that the image can not be found but why are the box's about the right size ? I have also tried changing the path to no effect.

Can someone explain what is going on please Anthony
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-28-04, 05:05 AM
wessamzeidan wessamzeidan is offline
Newbie Coder
 
Join Date: Apr 2004
Location: Lebanon
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Is your php file in the same folder with thumb?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to put dynamic data display in a scrolling watermark? Whipsmack JavaScript 1 03-29-04 09:22 AM
need help with viewing uploaded image on webpage? mikewooten PHP 0 03-16-04 08:39 PM
need script to display new image, every 24 hours Dinrock JavaScript 0 01-20-04 10:56 AM
Dynamic Image help jacobe PHP 8 10-15-03 05:55 AM
dynamic image src = Newbie question clintre PHP 1 10-07-03 10:56 AM


All times are GMT -5. The time now is 12:14 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.