#1
|
|||
|
|||
Why won\'t graphics on my website display when cgi-bin is involved?
On my website, I have a holdem odds calculator that uses one of those cgi-bin folders. I recently added a graphic to it, but the graphic will not display.
I tried putting the graphic in a separate layer, didn't work. I tried putting a graphic in the cgi-bin folder where the place holder says it was looking for a graphic. Nope The graphic appears fine on the initial screen, but as soon as you calculate odds, it disappears, leaving just a busted link symbol or the alt text. Unrelated graphics (the banner ads) which reside on the template are fine. It's just the calculator graphic in the "editable" region of the page that fails to display. It does not matter where in the editable region the graphic is placed, whether in the tables or out. Any ideas? |
#2
|
|||
|
|||
Re: Why won\'t graphics on my website display when cgi-bin is involved?
The website source says the graphic location is /graphics/calculator.gif in both instances. This means that on the start page its looking for it in http://holdemtight.com/pgs/od/graphics and on the second page its going to be looking for it in http://holdemtight.com/cgi-bin/graphics
What you said in the post indicates the file is in both locations, but I'm just double checking? |
#3
|
|||
|
|||
Re: Why won\'t graphics on my website display when cgi-bin is involved?
it doesnt work cuz of file permissions, type man chmod for details.
you should keep images in /images, and cgi-bin just for executables for security. |
#4
|
|||
|
|||
Re: Why won\'t graphics on my website display when cgi-bin is involved?
[ QUOTE ]
The website source says the graphic location is /graphics/calculator.gif in both instances. This means that on the start page its looking for it in http://holdemtight.com/pgs/od/graphics and on the second page its going to be looking for it in http://holdemtight.com/cgi-bin/graphics What you said in the post indicates the file is in both locations, but I'm just double checking? [/ QUOTE ] oh yea, just noticed that too. thats your problem, <img src="graphics/calculator.gif"> use absolute path |
#5
|
|||
|
|||
Re: Why won\'t graphics on my website display when cgi-bin is involved?
[quoteWhat you said in the post indicates the file is in both locations, but I'm just double checking?
[/ QUOTE ] Yes, I added the gif to the second location by creating a /graphics folder within cgi-bin, I was hoping that would satisfy it, but it didn't. I've also tried putting the entire path (http://holdemtight.com/pgs/od/graphics/calculator.gif) onto the results web pages, hoping it would stop looking in cgi-bin, but that did not work either. Psionic: you say: "it doesnt work cuz of file permissions, type man chmod for details." What is man chmod and where exactly do I type it? |
#6
|
|||
|
|||
Re: Why won\'t graphics on my website display when cgi-bin is involved?
[ QUOTE ]
[quoteWhat you said in the post indicates the file is in both locations, but I'm just double checking? [/ QUOTE ] Yes, I added the gif to the second location by creating a /graphics folder within cgi-bin, I was hoping that would satisfy it, but it didn't. I've also tried putting the entire path (http://holdemtight.com/pgs/od/graphics/calculator.gif) onto the results web pages, hoping it would stop looking in cgi-bin, but that did not work either. Psionic: you say: "it doesnt work cuz of file permissions, type man chmod for details." What is man chmod and where exactly do I type it? [/ QUOTE ] d'oh [img]/images/graemlins/smile.gif[/img] Sounds like you probably don't have telnet access? |
#7
|
|||
|
|||
Re: Why won\'t graphics on my website display when cgi-bin is involved?
[ QUOTE ]
d'oh Sounds like you probably don't have telnet access? [/ QUOTE ] All I know is I upload files using Dreamweaver, and can also fiddle with them using the server provider's web tools. |
#8
|
|||
|
|||
Re: Why won\'t graphics on my website display when cgi-bin is involved?
the actual solution is to edit the html file(s) to have
<img src=http://domain.com/dir/file.jpg> instead of <img src=/dir/file.jpg> you can email your hosting provider about shell and ftp access, pretty useful for serious webmasters. http://en.wikipedia.org/wiki/Unix_shell |
#9
|
|||
|
|||
Re: Why won\'t graphics on my website display when cgi-bin is involved?
The path for the graphic I put in the web page is:
http://holdemtight.com/pgs/od/graphics/calculator.gif I triple check it in Dreamweaver using remote view. That's the path. But when viewed in a browser, there is no graphic, only the alt text, and the path it's using is garbled: c:%5Ccy%5Choldtight%5Cpgs%5Cod%5Cgraphics%5Ccalcul ator.gif |
#10
|
|||
|
|||
Re: Why won\'t graphics on my website display when cgi-bin is involved?
na, i downloaded the page just now,
http://holdemtight.com/pgs/od/holdem-odds-page.htm: "<td width="325" height="542" valign="top" bgcolor="#EBEBEB"><p><p align="center"><img src="graphics/calculator.gif" alt="Holdem odds calculator" width="289" height="103"></p>" |
|
|