954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Below directory question

How do you acces a folder beneath the current folder?

The upload script is at:

htdocs/mysite/management/upload.php

and i want the files to be uploaded at:

htdocs/mysite/images/

What should the directory be?

Graphix
Posting Pro in Training
432 posts since Aug 2009
Reputation Points: 82
Solved Threads: 74
 

../images/ The .. means up one directory, so ../images/ really says htdocs/mysite/images/ . It would probably be better to use the absolute path but you haven't posted one so I don't know you're directory structure :)

ShawnCplus
Code Monkey
Team Colleague
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
 

Perhaps i was a bit unclear :)

I upload my files at:

/public_html/

And my upload script is at:

/public_html/management/upload.php

And i want the files to be send to:

/public_html/images/

Better now?

Graphix
Posting Pro in Training
432 posts since Aug 2009
Reputation Points: 82
Solved Threads: 74
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: