PHP backslash problem

Hi everyone,

I have a problem I just can’t figure out.

I’m trying to create a .tex file from php string. I write text in a variable i.e $test = ’ text in want in the file '.

Then I put this information in my sql database and user can then click on a link to download the text file.

The problem is that I can’t for some reason insert a backslash in the text since php takes this as the beginning of a command. I tried the double backslash but it outpouts only a space and not a backslash.

Any ideas??



See if your system has get_magic_quotes enabled. This should solve the problem.

Sponsor our Newsletter | Privacy Policy | Terms of Service