cyclefiend2000 wrote:the last line does print and looks like it should.
Good.
dalecosp,
the code you gave does the same thing as the code i was previously using.
Err, no, it doesn't. Or, more properly, it does in your situation, but in some situations, it would not do the same thing. For example, if the file didn't exist. However, that's prolly not important, as you note that it is working in your situation.
IMPORTANT: You may wish to replace that URL in your code examples with a non-working example; you may make your site a target for attack since PHPBuilder forums are widely known and publicly archived.
Finally, is there any reason why you call [man]fopen/man with 'a' in the first example and 'a+' in the second?