Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Displaying images from CGI
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Displaying images from CGI
Displaying images from CGI
02-11-2007 10:38 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Can anybody here shed any light on what's going wrong?
I started a thread on EZScripting as that is the script I'm using please see
http://www.ezscriptingforums.com/forum/index.php?topic=706.0
Ian
I started a thread on EZScripting as that is the script I'm using please see
http://www.ezscriptingforums.com/forum/index.php?topic=706.0
Ian
Message 1 of 8
(2,569 Views)
7 REPLIES 7
Re: Displaying images from CGI
02-11-2007 11:49 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You cannot put images in cgi-bin. Only perl (.pl) and shell scripts can be run / accessed from their, any normal files cannot.
You need to use an directory outside cgi-bin for the images.
You need to use an directory outside cgi-bin for the images.
Message 2 of 8
(507 Views)
Re: Displaying images from CGI
02-11-2007 12:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks Peter, I thought I'd done that with http://www.rafmtd.plus.com/rafmtd/rafmtd4.jpg, which is the full path in the database 
Or are you saying that because it originates from the CGI that the path won't be recognised, in which case how do I get the script results to appear in an external page?, I've tried putting the full path to an external page but it won't open.
Ian

Or are you saying that because it originates from the CGI that the path won't be recognised, in which case how do I get the script results to appear in an external page?, I've tried putting the full path to an external page but it won't open.
Ian
Message 3 of 8
(507 Views)
Re: Displaying images from CGI
02-11-2007 12:28 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The link you have given does not work - are you sure the URL is correct?
As given, the URL is looking for an image on your www webspace in htdocs\rafmtd\rafmtd. Is that where the image is when viewing via FTP?
Are we talking about images on your ccgi webspace or your www webspace which are actually on different web servers?
As given, the URL is looking for an image on your www webspace in htdocs\rafmtd\rafmtd. Is that where the image is when viewing via FTP?
Are we talking about images on your ccgi webspace or your www webspace which are actually on different web servers?
Message 4 of 8
(507 Views)
Re: Displaying images from CGI
02-11-2007 1:02 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Sorry peter, http://www.rafmtd.co.uk/rafmtd4.jpg
But this returns "Can't open file http://www.rafmtd.co.uk/testpage.html!"; when called for from the script, but will open in a browser.
I have been putting copies of the image on both servers and under differant directories including /images/ in the root of CCGI.
I might have to use MySQL instead, I've got a guestbook on another site that's working fine, but I need to be able to search the data on the rafmtd site and initially EZScripting looked like it would be O.K.
Ian
P.S. Edit, having just checked this post the first link only works if you paste into browser !!!
But this returns "Can't open file http://www.rafmtd.co.uk/testpage.html!"; when called for from the script, but will open in a browser.
I have been putting copies of the image on both servers and under differant directories including /images/ in the root of CCGI.
I might have to use MySQL instead, I've got a guestbook on another site that's working fine, but I need to be able to search the data on the rafmtd site and initially EZScripting looked like it would be O.K.
Ian
P.S. Edit, having just checked this post the first link only works if you paste into browser !!!
Message 5 of 8
(507 Views)
Re: Displaying images from CGI
02-11-2007 1:44 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: ianscales But this returns "Can't open file http://www.rafmtd.co.uk/testpage.html!"; when called for from the script, but will open in a browser.
It depends on what the script is doing with the file or whether the file it is trying to read, is on the same server as the script.
If the html is on your www server space and the script is on your ccgi server space and is assuming the html is on its server (ccgi) then it won't be able to open it.
Message 6 of 8
(507 Views)
Re: Displaying images from CGI
03-11-2007 11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks for the reply Peter, I'm on a mobile connection at the moment so unable to connect to the CGI server, will take another look on Monday.
Ian
Ian
Message 7 of 8
(507 Views)
Re: Displaying images from CGI
04-11-2007 4:14 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks Peter, amazing what a weekend away does
cleared my mind, and now it works fine, the image files needed to be in an image directory at the CGI root (I had the directory within the cgi-bin 
Thanks again for your patience.
Ian


Thanks again for your patience.
Ian
Message 8 of 8
(507 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Displaying images from CGI