If script files (.php, etc) have embedded <CR> and/or <LF> symbols at the end of lines, then do the following.
$ EXCHANGE/NET/FDL=stream.fdl infilename outfilename
where "stream.fdl" contains:
RECORD
CARRIAGE_CONTROL carriage_return
FORMAT stream
This will change the file's attributes, such that the embedded CR-LF pairs
are now the natural record delimiters.
If you are running OpenVMS 6.1 (I think) or later, you can use:
$ SET FILE/ATTRIBUTE=(RFM:STM)
which should have the same effect. See the appropriate HELP commands for more information.
File Attributes
If creating a new file...
I've found that if you're creating a new file, you can ensure that the correct attributes are set by explicitly creating the file before opening it for write:
The file data.html is now populated with data in the stream-lf format necessary for Apache v2.
HTH someone,
Alphaman
Code: Select all
$ create data.html /fdl=sys$input
$ Deck
Record
block_span yes
carriage_control carriage_return
format stream_lf
size 0
$ EOD
$ open/append HTML$File data.html
HTH someone,
Alphaman
Make PHP process all of your files...
One thing I discovered... PHP doesn't seem to care about the format of the input file.
If you install PHP and then tell Apache to use PHP on all of your file typesm you can use regular VMS files for your HTML and PHP files. Only CSS files still need to be str/lf attribute.
Ken Robinson
If you install PHP and then tell Apache to use PHP on all of your file typesm you can use regular VMS files for your HTML and PHP files. Only CSS files still need to be str/lf attribute.
Ken Robinson
- WillemGrooters
- VMS Guru
- Posts: 59
- Joined: Wed Jul 20, 2005 10:17 am
- Location: Netherlands
- Contact:
No STREAM_LF for me
This has been the major issue for me NOT to use Apache 2.0. IMHO, ANY application running on OpenVMS should be able to cope with native file formats. I have command procedures and executables that create my web files - because any Unix-based won't recognize multiple versions of files: in a directory list, Apache will show only the latest version. This is a problem if you NEED to have access to different versions, so I run a commandprocedure to create a HTM page showing the whole lot. Ok, I could do the CONVERT afterwards, but why would I? Apache 1.3 can handle this.
Sometimes, there is no alternative than to accept this. Java is such garbage. Choice is NOT to use this when avoidable, otherwise stick to files local to Java and don't let it require access to native files at all.
Sometimes, there is no alternative than to accept this. Java is such garbage. Choice is NOT to use this when avoidable, otherwise stick to files local to Java and don't let it require access to native files at all.
-
- Posts: 5
- Joined: Mon Nov 02, 2020 12:41 pm
- Location: Tunisia
- Contact:
File Attributes
Are you asking how to make it anamorphic? mpeg4modifier by moitah can set the pixel aspect ratio of an ASP stream in an AVI file to be the same as it is in a 16:9 dvd, thus making the picture render with the correct dimensions. Whether or not your player supports this, I dont know.