Forum Moderators: coopster

Message Too Old, No Replies

PHP image display problem

         

rawilkins

8:20 pm on Sep 30, 2004 (gmt 0)

10+ Year Member



I have problem with images not displaying.
One page where I enter data and images displays properly, the other page which is the same database with has no edit rights displays text but no images, the image folder is in the other folder but I changed the $Translation["ImageFolder"] = "./images/";
to
$Translation["ImageFolder"] = "./exampledatabase/images/"; which is where the image folder is, but no luck. When I look the site and right click the blank image I get "http://example.com/example_dbuser/exampledatabase/images/81845500_1096570832.jpg" seems like the example_dbuser folder does not need to be there. I do not understand how to get the images directed to the correct folder.

[edited by: coopster at 8:39 pm (utc) on Sep. 30, 2004]
[edit reason] generalized urls per TOS [webmasterworld.com] [/edit]

Timotheos

6:26 am on Oct 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi rawilkins and welcome to WebmasterWorld!

What package or script are you using? or is this your own creation?

Tim

mincklerstraat

7:42 am on Oct 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This problem will probably involve looking into your HTML source, trying to correct it, and then trying to find the part of your php script that is outputting the portions of HTML which need to be corrected. ../ means 'go back one directory', so you could try:
$Translation["ImageFolder"] = "../exampledatabase/images/";

this should work if your images are always in the same place, and not relative to the directory that the script is in (might be better):
$Translation["ImageFolder"] = "/exampledatabase/images/";
just put the path (not including the domain name) after the first slash. Or just use the whole domain name including http:// - should also work. There, you have a number of things to try.