I have a file stored in temp folder. In localhost, when I run the following function:
$return_res = $documentRetrieved->getPathname();
I get back:
C:\Windows\Temp\A2C2.tmp
While in live server with the same code, I get:
/tmp/cdbQpa
When i run
file_get_contents($documentRetrieved->getPathname())
It works fine in localhost but not in live environment. What should i do so that it works in local and in live server?