[PHP + HTML] Local Search Engine

Soldato
Joined
12 Jun 2005
Posts
5,361
Hi there,

First question is: How can i open a link to a local folder? So if i linked to "C:\MyFolder", I would like it to open, but it doesn't, is there a workaround?

Second question, is there a good tutorial for creating a search engine that indexes (PHP) out there?

Thanks.
 
You normally need to prepend file:/// to filenames/paths you wish to access, but it differs between browsers. And additionally, you may find browsers have different sets of security permissions that allow you to open/browse local links.

Code:
<a href="file:///c:\temp">hello</a>

I think the file also needs to be locally accessed to allow that and I believe Firefox prevents local file access to scripts unless you explicitly disable it via the config option security.checkloaduri to false. Been a while since I need to do that, so might be worth checking up on the accuracy of that too.
 
Back
Top Bottom