Jump to content

Archived

This topic is now archived and is closed to further replies.

JP128

Directories: I need some help.

Recommended Posts

Hello everyone I am trying to see if I can get into a different directory on my website.
This is an example...

php/docs/page.php

php/otherdocs/otherpage.php

Say that those are 2 different directories. How would I go about getting into the other directory with a link?

||||Page.php||||
<a href="otherpage.php">Otherpage.php</a>
----------------^-^----------------
I want that to link to the other directory, but I dont know how... can anyone show me a sample? I want to do it with out retyping the entire webpage.


thanks

If you dont get what I am trying to do, post something. I have Yahoo, MSN, and aim... if you have anyof those, i will add you

Share this post


Link to post
Share on other sites
hmm does anyone understand what I Am trying to do?

Share this post


Link to post
Share on other sites
uhh

<a href="?dir=php/otherdocs/&file=otherpage.php">otherpage.php</a>

then get the file and dir using $_GET on the page and then use these to get the specified file

Share this post


Link to post
Share on other sites
I am really bad with the GET... I havent ever learned how you use them... hmm is there somewhere where I could learn it? Or have a brief introduction? lol

Share this post


Link to post
Share on other sites
I was looking for tutorials after I posted.

Share this post


Link to post
Share on other sites
I found a tutorial, but it didnt explain how it all works, it basically showed me how to do it, and use $_GET. But I already know how to do that.. I just dont know how to use it the way you did. I am still looking tho

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.