fputs adding unwanted backslashes

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

louisb
New php-forum User
New php-forum User
Posts: 3
Joined: Mon Nov 11, 2002 2:48 am
Location: UK
Contact:

fputs adding unwanted backslashes

Postby louisb » Mon Nov 11, 2002 2:55 am

I have a problem using fputs();

I am writing form data to a text file. (overwriting existing content).

Unfortunatly backslashes are being added to the file before some not all of the double-quotes and single quotes in the text.

Does anyone have any idea why this or or how I can correct it?

Thanks,

LouisB

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: fputs adding unwanted backslashes

Postby WiZARD » Mon Nov 11, 2002 5:11 am

louisb wrote:I have a problem using fputs();

I am writing form data to a text file. (overwriting existing content).

Unfortunatly backslashes are being added to the file before some not all of the double-quotes and single quotes in the text.

Does anyone have any idea why this or or how I can correct it?

Thanks,

LouisB

Give me a code, maby i can help you....


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 8 guests

cron