I did an amazing discovery today. There is a PHP constant called PHP_EOL you can use instead of "\n". This will make your script cross platform.
I honestly did not know about this. I'm happy I learnt something new today.
My name is Michiel Roos. I currently work for Netcreators in Holland. I like tech stuff like Linux, TYPO3, Gumstix and Roombas but I also like to dig in the dirt and try to grow veggies and other things. Some of you may know me as author of nc_staticfilecache and maintainder of the DAM project.
Well . . . I like code without typo's. It just runs better ;-)
I did an amazing discovery today. There is a PHP constant called PHP_EOL you can use instead of "\n". This will make your script cross platform.
I honestly did not know about this. I'm happy I learnt something new today.