Closed ghost closed 7 years ago
If you don't change the current directory in your script, the file should be in the directory you have started your script.
@mimmi20 is the above script written correctly because I am not getting a BrowscapINI file or directory after executing the script.
The script you posted looks fine.
Does the script get executed as a general user because they do not have permissions to write in that directory. Would the PSR log tell me anything and how would I go about setting that up?
You need write access to the target directory. How to set up a logger you find in the readme.
@mimmi20 I finally figured out the problem and it was not at all what I expected. For some odd reason you cannot assign a caching method before fetching the data. I know it shouldn't impact any of the code on fetching but on my system if you remove lines 36-47 it works, If you keep lines 36-47 it does not fetch the file. Can you have someone else confirm my findings?
If you have the same file already written into the cache, the screen does not fetch the file again.
There was never a browscap file in the directory before or after I tried the fetching method.
I'm trying to retrieve the file from the script and save it in a directory. After I run the script I cannot seem to find the browscap.ini file or where I am supposed to set the directory to place the file.