Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pathing Issue
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Titre:
Divers
Thread ID:
00696852
Message ID:
00697204
Vues:
13
James,

Whenever you reference a URL in a specific directory it becmes the active directory. So if you ref:

/cgi-bin/wc.dll?somequerystrign

/cgi-bin becomes your current directory. If you now reference an image with:

images/someimage.gif you're actually saying look in:

/cgi-bin/images/

for the image. Of course there's no image there.

As Michel suggest you either have to use a more absolute URL off the root (/somvirtual/) or you have to use reverse pathing. For example if your structure is:

/yourapp/
/yourapp/images/
yourapp/cgi-bin/

You can use:

../images/someimage.gif

to get to the image too.

If possible always use relative pathing like the latter as it makes the app more portable.

Another alternative that bypasses this whole mess with cgi-bin is to use scriptmaps. Using scriptmaps it doesn't matter where the actual DLL sits and you can 'naturally' reference any links via the scriptmap in any location.


+++ Rick ---

>I created a West Wind app and am now getting ready to roll it out. I want to put my exe and wc.dll in a cgi_bin subdirectory underneath my webserserver main directory.
>
>c:\inetpub\wwwroot\myproject\cgi_bin
>
>Everthing works except it can't find the graphics. It keeps looking for the graphics directory under: c:\inetpub\wwwroot\myproject\cgi_bin\graphics. The graphics directory is c:\inetpub\wwwroot\myproject\graphics.
>
>Does anyone know how to resolve this issue?
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform