Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 24th, 2003, 01:52 PM
Registered User
 
Join Date: Dec 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default getting images from another webserver?

hi, i have found some great code somewhere some time ago, and it works great. but, now i want to store my pictures on a different webserver, and i cant get it to work. here's some code:

Code:
  <form action=<%=PopFile%> method="POST">
  pictures
  <select name="go" onChange="jumppage(this);" size=1>
  <% 
  ShowSub = request("ShowSub")
  ShowPic = request("ShowPic")
  strPathInfo = Request.ServerVariables("PATH_INFO")
  strPhysicalPath = Server.MapPath(strPathInfo)
 
  Set objFSO = CreateObject("Scripting.FileSystemObject")
  Set objFile = objFSO.GetFile(strPhysicalPath)
  Set objFolder = objFile.ParentFolder
  Set objFolderContents = objFolder.Files
  For each Folder in objFolder.SubFolders
      If Left(Folder.Name,1)<>"_" Then
          Response.write "<option "
          If ShowSub=Folder.Name Then
              Response.Write "selected "
          End if
          Response.Write"value='" & CurFile & "?ShowSub="
          Response.Write(Replace(Folder.Name, " ", "%20"))
          response.write "'>"
          Response.Write(Folder.Name & "</option>")
          If ShowSub <= " " Then
            ShowSub = Folder.Name
        End if
      End if
  Next 
  Set objFSO = Nothing
  %>
  </select>
  </form>


so, what i want, is to change PATH_INFO (i'm guessing) to my URL/webserver, as in http://etc. etc. can anyone help?







Similar Threads
Thread Thread Starter Forum Replies Last Post
webserver umeshtheone Struts 3 August 13th, 2008 12:35 AM
Caching directives in webserver manuelam BOOK: Professional Apache Tomcat 0 June 16th, 2006 02:18 AM
problem with publishing to a webserver JRMotz BOOK: ASP.NET Website Programming Problem-Design-Solution 0 April 17th, 2006 09:58 PM
Problem with IIS webserver hawkfb63 ASP.NET 2.0 Professional 1 March 6th, 2006 12:53 AM
Calculate a Webserver Folder Size fred205 BOOK: Beginning ASP 3.0 0 February 12th, 2005 05:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.