J
Jules
Is anyone able to translate the following PHP to ASP ? or come up with
something that would work.
The reason for the code is that I'm using Indexing service to create a
search engine on a company intranet. Unfortunately the Find.asp is
bringing back the location of the link as its place on the server (eg
C://Inetpub/www etc rather than a nice URL that works. I've been told
this code may help but its in PHP. Thanks
---------------------------
//Modify location root...
$location=str_replace("C:\inetpub\wwwroot\intranet\", "/", $location);
//Change \ to /...
$location=str_replace("\\", "/", $location);
//Output link to $location, named $documentName
print("<a href=\"" . $location . "\">" . $documentName . "</a>\n");
---------------------------
something that would work.
The reason for the code is that I'm using Indexing service to create a
search engine on a company intranet. Unfortunately the Find.asp is
bringing back the location of the link as its place on the server (eg
C://Inetpub/www etc rather than a nice URL that works. I've been told
this code may help but its in PHP. Thanks
---------------------------
//Modify location root...
$location=str_replace("C:\inetpub\wwwroot\intranet\", "/", $location);
//Change \ to /...
$location=str_replace("\\", "/", $location);
//Output link to $location, named $documentName
print("<a href=\"" . $location . "\">" . $documentName . "</a>\n");
---------------------------