Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

fputs adding unwanted backslashes

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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
louisb
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Nov 11, 2002 2:48 am
Location: UK

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....
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.