Welcome Guest, Not a member yet? Register   Sign In
Text align when creating fwrite()
#2

[eluser]boltsabre[/eluser]
I don't really have any experience on this, just throwing out some ideas.

What happens when you open that notepad file, rather than printing it, is it left or right aligned?

It sounds more like an OS or notepad or printer setting rather than a php thing. What happens when you print a different notepad file not created by your script, does it print right or left?

On another note, you're doing a huge bunch of fwrites, can't you just create one $stringData, and once it's fully populated fwrite it just the once?

Also, perhaps try creating your string at the start of a new line
Code:
$stringData = "
this is my first line of code, starting at the very left
";

No idea if any of this will help in the slightest, but it's some things to look into.


Messages In This Thread
Text align when creating fwrite() - by El Forum - 03-20-2013, 08:02 PM
Text align when creating fwrite() - by El Forum - 03-21-2013, 04:43 AM
Text align when creating fwrite() - by El Forum - 03-21-2013, 09:36 AM
Text align when creating fwrite() - by El Forum - 03-21-2013, 04:16 PM
Text align when creating fwrite() - by El Forum - 03-21-2013, 07:32 PM
Text align when creating fwrite() - by El Forum - 03-22-2013, 02:09 AM
Text align when creating fwrite() - by El Forum - 03-22-2013, 05:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB