Caminho para diretório

o diretório do infiity aceita caminhos relativos? estou tentanto mover arquivos entre pastas e não consigo por conta do caminho.

TRANSLATED BY MOD

Does the infiity directory accept relative paths? I’m trying to move files between folders and I can’t because of the path.

Welcome!

Perhaps something got lost in translation, but I don’t quite understand what you are trying to do. You can use relative paths in your PHP code, yes.

6 Likes

Certo, tenho o domínio principal q possui a pastas htdocs, tenho a outra pasta do subdomínio que dentro tem a htdocs também e o código php, o código precisa enviar files para um diretório chamado diretorio na pasta htdocs do domínio principal, e o caminho que está dando erro. E na máquina local funciona.

Can you share the code that is failing?

2 Likes

Eu posso lhe passar o acesso ftp para ter acesso ao diretório completo

Eu posso fornecer o acesso ftp para o diretório completo .

Again, this is an English language forum. Please write your posts in English.

Final warning: any Portuguese posts from now on will be flagged and deleted.

That’s not possible on our hosting I’m afraid. For security reasons, PHP code within any website directory can only access files within the htdocs directory of that site. PHP code of one site will not be able to read or write data to other sites.

As a workaround, you could try:

  • Use a MySQL database instead. Databases of your account are not linked to a specific domain and can be accessed from all domains in your account.
  • Use subdirectories instead of different domains. While you cannot write files between, say, forum.example.com and blog.example.com, you can do so between example.com/blog and example.com/forum, because they are all part of the same domain name.

Please note this is a public forum. Please make sure to not publish any credentials here. Better yet: don’t share any credentials with anyone ever.

7 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.