4
Good afternoon, I have a PHP file that looks for a txt to take the information and go up the SQL database, but this file is generated by the server here in the company (where my machine is already mapped to R:
or Adm server).
Today I have to go on R:
, get that file (ATUALIZA.TXT
), bring to my machine in the WAMP folder, where the PHP file is, and then I run the file.
But I wanted to leave this "automatic", where my PHP program already looked at the server directly without having to play on my machine.
Today I use the fopen
(ATUALIZA.txt
, r
)", to open the file, and it works normally. I’m getting this error when using the server walk: fopen (\\servidor\adm\atualiza.txt):failed to open stream. permission denied in blá blá blá
.
Can anyone help me find a solution on how to open this file on the network?? Thank you.
Have you checked if the user that PHP is running has access to this server folder and the share?
– Vinícius Gobbo A. de Oliveira
I checked. This local server is used for internal file shares. I have full access over such folder. I have permission to read, change and delete the file.
– Matheus Delatorre
You have this page: http://support.ultimatelocator.com/index.php?/Knowledgebase/Article/View/60/0/php-Session-problems-Warning-session_start-opentmp-failed-permission-denied Check if you have followed the steps correctly. Sometimes it is permission in the folder, on the server, or the folder path in the source. Att, André.
– André