James Bell
James Bell

Reputation: 604

Folder access PHP on dedicated server

Can I access a folder on a different account on the same dedicated server via PHP?

Upvotes: 0

Views: 249

Answers (2)

luizfonseca
luizfonseca

Reputation: 327

Probably all the folders in the server are in */home/_folder_you_want_* (if the host uses linux), and so you can define a constant define('HOME', '/home/'), and include (like: include( HOME . 'folder');) the files you want.

Upvotes: 1

RobertPitt
RobertPitt

Reputation: 57268

There's a lot of factors to consider but the answer would be yes if you have permissions.

Upvotes: 0

Related Questions