Jump to content


Photo

Directories: I need some help.


  • Please log in to reply
6 replies to this topic

#1 JP128

JP128
  • Members
  • PipPipPip
  • Advanced Member
  • 233 posts
  • LocationWisconsin

Posted 17 June 2006 - 08:11 AM

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
-----------------------------------------------------------------------
John Ensign - Age 16 - PHP Learner

My email is Johnny.Ensign@gmail.com

#2 JP128

JP128
  • Members
  • PipPipPip
  • Advanced Member
  • 233 posts
  • LocationWisconsin

Posted 17 June 2006 - 08:31 AM

hmm does anyone understand what I Am trying to do?
-----------------------------------------------------------------------
John Ensign - Age 16 - PHP Learner

My email is Johnny.Ensign@gmail.com

#3 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 17 June 2006 - 08:35 AM

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
z..z..z..z..z..z..z..z..

#4 JP128

JP128
  • Members
  • PipPipPip
  • Advanced Member
  • 233 posts
  • LocationWisconsin

Posted 17 June 2006 - 08:38 AM

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
-----------------------------------------------------------------------
John Ensign - Age 16 - PHP Learner

My email is Johnny.Ensign@gmail.com

#5 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 17 June 2006 - 08:43 AM

RTFM...there are tons of tutorials on this site..
z..z..z..z..z..z..z..z..

#6 JP128

JP128
  • Members
  • PipPipPip
  • Advanced Member
  • 233 posts
  • LocationWisconsin

Posted 17 June 2006 - 08:44 AM

I was looking for tutorials after I posted.
-----------------------------------------------------------------------
John Ensign - Age 16 - PHP Learner

My email is Johnny.Ensign@gmail.com

#7 JP128

JP128
  • Members
  • PipPipPip
  • Advanced Member
  • 233 posts
  • LocationWisconsin

Posted 17 June 2006 - 08:55 AM

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
-----------------------------------------------------------------------
John Ensign - Age 16 - PHP Learner

My email is Johnny.Ensign@gmail.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users