Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Mail notification tool

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion
Register FAQ Community Calendar

ASP arghh
Closed Thread
 
Thread Tools
Old 09-09-2004, 14:55   #1
Bifta
Inactive
 
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
Bifta has a nice shiny starBifta has a nice shiny star
Bifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny star
ASP arghh

I wish I'd written this application in PHP .. but I didn't .. and it's too late now.

Anyway, I have a snippet of code to detect if an image exists which works perfectly on my local web server but not if I upload it to either of my windows hosts.

Code:
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")

If fs.FileExists ("tBRANCH_" & (Recordset1.Fields.Item("PropertyID").Value) & ".jpg") = true Then
	  Response.write("<img src=tBRANCH_" & (Recordset1.Fields.Item("PropertyID").Value) & ".jpg height=100 width=150>")
Else
      Response.write("<img src=nophoto.gif height=100 width=150>")
End if
%>
It's mystifying me, anyone have any idea what I'm doing wrong? At the moment it assumes the file doesn't exist and displays nophoto.gif for every result
Bifta is offline  
Advertisement
Old 09-09-2004, 15:05   #2
Bifta
Inactive
 
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
Bifta has a nice shiny starBifta has a nice shiny star
Bifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny star
Re: ASP arghh

Could somebody close this, I've fixed it, ta.
Bifta is offline  
Old 09-09-2004, 15:09   #3
Chris
Trollsplatter
Cable Forum Team
 
Chris's Avatar
 
Join Date: Jun 2003
Location: North of Watford
Services: Humane elimination of all common Internet pests
Posts: 38,607
Chris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden aura
Chris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden auraChris has a golden aura
Re: ASP arghh

Done.
Chris is offline  
Closed Thread


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. The time now is 23:44.


Server: lithium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum