kvarnerexpress 0 Report post Posted May 3, 2005 I have been writing my first CGI program, but had problems loading images and background files.I needed to write:-Code:cout << "<body background=\"file:///C:\\GoAhead\\ws031202\\web\\cgi-bin\\images\\MyBackground.jpg\">"to get the images loaded.i.e. the following line did not work:-Code:cout << "<body background=\"http//C:\\GoAhead\\ws031202\\web\\cgi-bin\\images\\MyBackground.jpg\">"Can someone explane the difference for me please.I could never use relative references:-e.g.Code:cout << "<body background=MyBackground.jpg\">"Many thanks, kvarnerexpress Share this post Link to post Share on other sites
beeseven 0 Report post Posted May 4, 2005 file:/// and http:// are different protocols. When you say file:/// it will automatically search the file system on the computer for the path. When you say http:// it will assume that it's a file on the internet. It's just how stuff is recognized- http:// doesn't work because C:\ isn't a website. Share this post Link to post Share on other sites