I have a php script that should output JS code. This works fine in production and is cached. However on development the actual php coded is copied and not the output. Since I use__DIR__, my script now cannot find the files it needs.
2 questions:
is there a way i can use the __DIR__ of the original file?
can the output of the script be cached? this would also work
I have a php script that should output JS code. This works fine in production and is cached. However on development the actual php coded is copied and not the output. Since I use
__DIR__
, my script now cannot find the files it needs.2 questions:
__DIR__
of the original file?