Directory Structure

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
prgmctan
Forum Newbie
Posts: 19
Joined: Mon Feb 23, 2009 11:29 am

Directory Structure

Post by prgmctan »

Hi, I wasn't really sure where to ask this but I had a question about how to access different aspects of a directory. My problem is using my testing server (xampplite), it needs to be

Code: Select all

../
but on my server, hosted by godady, it needs to be

Code: Select all

/../
Both versions are php5 so I'm not sure what the difference is.
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: Directory Structure

Post by omniuni »

Odd, the godaddy one says "root, and one more up" which should not be possible.

Possibly something is configured differently. What are you trying to do, so I can advise more specifically?
prgmctan
Forum Newbie
Posts: 19
Joined: Mon Feb 23, 2009 11:29 am

Re: Directory Structure

Post by prgmctan »

omniuni wrote:Odd, the godaddy one says "root, and one more up" which should not be possible.

Possibly something is configured differently. What are you trying to do, so I can advise more specifically?
I'm not exactly sure what you mean. I'm testing on xampplite and ftp-ing all of the files to the godaddy server. I created the databases and tables I would need, etc, and changed how to connect to it. All of the database stuff seems to work fine, but when I try to load styles or use requires, it needs to be changed from ../ to /../

P.S. Sorry for the late reply, I couldn't seem to get on devnetwork for the longest time.
Last edited by prgmctan on Mon Mar 16, 2009 1:34 am, edited 1 time in total.
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: Directory Structure

Post by omniuni »

I suspect it is a GoDaddy thing. Their hosting is very weird. Root is Unix's way of referring to the top of the file system. From there, you should not be able to go "up" any more levels. For whatever reason, GoDaddy's required path is to go up one step from the top... it does not make sense.

I'm sorry, I can't think of anything else at the moment. I too was having trouble getting onto DevNetwork (it's rare, but it happens), and it's 1:51 AM here, so maybe I'll think of something better by morning!

Good Luck,
OmniUni
Post Reply