Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Open a directory by click a link (like a double click)

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Open a directory by click a link (like a double click)

Postby pascalpavan25 » Mon Mar 11, 2013 1:12 am

Hi everybody!
I'm from Switzerland and I hope that you can help me!

So here's my problem:
Is possibile to open a directory by clicking a link from the browser? (Google Chrome).
I create link using this:
while($fetch = mysql_fetch_object($db1->result)){.
<a href="../../Ritdocs/".$folder."/" TARGET="_blank">Link n° '.$fetch->Dossier.'</a>.
}
and on the screen I view this:
Link n° 13021991
Link n° 17583748

So, i would like that when I click on the link 13021991 the browser open the directory n° 13021991 (The link is <a href="../../Ritdocs/13021991/" TARGET="_blank">Link n° 13021991</a>.

Please help me,
Thanks Pascal
pascalpavan25
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Mar 11, 2013 1:07 am

Re: Open a directory by click a link (like a double click)

Postby seandisanti » Mon Mar 11, 2013 7:39 am

It should work, assuming apache has rights to see the directory you're trying to list.
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 787
Joined: Mon Oct 01, 2012 12:32 pm

Re: Open a directory by click a link (like a double click)

Postby pascalpavan25 » Tue Mar 12, 2013 12:01 am

How can I do? I use an IIS server on WIndows server ...
pascalpavan25
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Mar 11, 2013 1:07 am

Re: Open a directory by click a link (like a double click)

Postby seandisanti » Tue Mar 12, 2013 7:59 am

I'm not very well versed in IIS, but I think the easiest way to do it would be to just move those directories into the webroot folder, or whatever folder your IIS is serving pages from.
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 787
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron