Jump to content

PHP backslash problem


jplavoie

Recommended Posts

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??

 

Thanks,

 

JP

 

 

Link to comment
https://forums.phpfreaks.com/topic/37866-php-backslash-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.