Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Computer Technical Help
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-24-2007, 02:26 PM
Bill Haywood Bill Haywood is offline
Senior Member
 
Join Date: Apr 2003
Location: Arkansas
Posts: 746
Default 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?
Reply With Quote
  #2  
Old 09-24-2007, 04:41 PM
nuclear500 nuclear500 is offline
Senior Member
 
Join Date: Aug 2004
Location: Madison, WI
Posts: 1,065
Default 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?
Reply With Quote
  #3  
Old 09-24-2007, 04:43 PM
psionic storm psionic storm is offline
Senior Member
 
Join Date: Feb 2007
Location: Hamilton, ON, Canada
Posts: 279
Default 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.
Reply With Quote
  #4  
Old 09-24-2007, 04:50 PM
psionic storm psionic storm is offline
Senior Member
 
Join Date: Feb 2007
Location: Hamilton, ON, Canada
Posts: 279
Default 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
Reply With Quote
  #5  
Old 09-24-2007, 08:34 PM
Bill Haywood Bill Haywood is offline
Senior Member
 
Join Date: Apr 2003
Location: Arkansas
Posts: 746
Default 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?
Reply With Quote
  #6  
Old 09-24-2007, 09:34 PM
nuclear500 nuclear500 is offline
Senior Member
 
Join Date: Aug 2004
Location: Madison, WI
Posts: 1,065
Default 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?
Reply With Quote
  #7  
Old 09-24-2007, 10:43 PM
Bill Haywood Bill Haywood is offline
Senior Member
 
Join Date: Apr 2003
Location: Arkansas
Posts: 746
Default 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.
Reply With Quote
  #8  
Old 09-24-2007, 11:46 PM
psionic storm psionic storm is offline
Senior Member
 
Join Date: Feb 2007
Location: Hamilton, ON, Canada
Posts: 279
Default 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
Reply With Quote
  #9  
Old 09-25-2007, 10:12 AM
Bill Haywood Bill Haywood is offline
Senior Member
 
Join Date: Apr 2003
Location: Arkansas
Posts: 746
Default 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
Reply With Quote
  #10  
Old 09-25-2007, 11:32 AM
psionic storm psionic storm is offline
Senior Member
 
Join Date: Feb 2007
Location: Hamilton, ON, Canada
Posts: 279
Default 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>"
Reply With Quote
Reply


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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:52 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.