r/web_programming • u/betogm • Sep 27 '17
Two different folders with the same code on the same server creates different results
Hello,
I am facing a big problem I don't know how to fix. You see, I have two folders with the same code, one for programming-testing and the other for user-testing. In theory if a code works on one folder it should work on the other, however something weird is proving this wrong: I get weird results on the user-testing folder that is not replicated on the programming-testing folder such as an empty_response error when uploading a file.
What is going on? Can you please help me? Thanks!
1
u/nerf_herd Sep 27 '17
assuming all the paths are relative, maybe it is a file/directory permissions issue?
1
u/betogm Sep 27 '17
How would I know? All I did was copy the files on one folder and paste on another.
0
u/nerf_herd Sep 27 '17
1
u/betogm Sep 27 '17
.... thanks >.>;;
1
u/betogm Sep 27 '17
I checked the permissions of the files in question. All of them have the same permissions:
-rw-r--r-- 11
u/ReleaseThePressure Sep 27 '17
Might sound silly but you've tried clearing your cache etc?
1
u/betogm Sep 27 '17
Yep, multiple times. Every time I make a change I clear it
1
u/ReleaseThePressure Sep 27 '17
Could be a permissions issue, is the owner and group of both folders the same?
Run ls -l /path/to/folder to check each.
1
u/betogm Sep 27 '17
I did that as well and they all have the same permissions (aside from folders, of course).
1
u/betogm Sep 27 '17
I forgot to mention that this issue happened on a computer different than the one used to test code. However, the other person also clears her cache constantly. My guess is something external like a firewall or antivirus from that computer.
0
Sep 27 '17
[deleted]
2
u/betogm Sep 27 '17
I am terribly sorry to omit that information, here it is:
It's written in PHP. A page in particular is using a library called PHPExcel
The server is Linux called Midphase
I am not sure about the environment.
I am executing the code by visiting the page.
Just an excel file.
0
Sep 27 '17
[deleted]
1
u/betogm Sep 27 '17
The server is apache. And the path is correct. I am letting the user input it and the page gets the tmp_name. And yes, u/nerf_herd did suggest it. I am looking at it
2
u/Carrion2 Sep 28 '17
Welcome to web development!