Output data to text files etc.
Posted: 2016-11-14T15:32:15-07:00
I am trying to get some image data into a php variable with success in some cases and not in others.
Please can somebody explain where the info will be going when using :- and 2>&1
What would I need to write the data to a text file?
Looking on the web I only need the stdout and not the error?
This works in the command line and I get a list of the XMP data.
Also with one of my tests ( I can not remember which one now ) in php I had the last line of the file <?xpacket end="w"?> Thinking about it I had a similar problem doing something and each line of the data was overwriting the previous one. Although that could have been when I was working on some Pi code as I have been trying that out lately as well.
Please can somebody explain where the info will be going when using :- and 2>&1
What would I need to write the data to a text file?
Looking on the web I only need the stdout and not the error?
Code: Select all
magick -ping image.CR2 XMP:-
This works in the command line and I get a list of the XMP data.
Also with one of my tests ( I can not remember which one now ) in php I had the last line of the file <?xpacket end="w"?> Thinking about it I had a similar problem doing something and each line of the data was overwriting the previous one. Although that could have been when I was working on some Pi code as I have been trying that out lately as well.