Jump to content

PHP linefeeds and carriage returns


Recommended Posts

Using transformToURI() to create a text file

 

$xslt_parse->transformToURI($xml_obj,$uploadDir.'output.txt');

 

Some users will be using Linux and some Windows.

Currently using Apache on a Windows XP machine as specified.

File is created but is full of the little square characters (linefeed / carriage return)

 

Has anyone got a code snippett that will convert a file from unix to dos?

 

I've racked my brains and searched like a mad searching thing and never yet twigged it.

 

Help appreciated - online tutorial is good too. I'm a bit brain-fnookered at the moment so something pretty specific is required.

 

Thanks

 

Will

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...