Search the Community
Showing results for tags 'backslash'.
Found 2 results
I'm very surprised: I recently received php code written on a PC with a link containing backslash: <?php include_once('include\dbConnect.php'); ?> (...) This code didn't work (the table content was not displayed). Once I replaced the backslash with slash, the code worked again well. Maybe obvious for most of you, but it is something I had never heard about! Now, I wonder what the "slashed" code would give on a PC?
Hello Forum - hello Larry - - I'm working on a Mac, OS X Version 10.5.8. When I write a quote that contains an apostrophe to quotes.txt file, for example -- I've wasted my hours. - Leonardo da Vinci -- somehow a backslash appears before the apostrophe in the text file, and the same quote inside quotes.txt looks like this: I\'ve wasted my hours. - Leonardo da Vinci When I get the same quote from the text file via php back to the browser in view_quote.php, the backslash is displayed. The backslash also appears before double quotes: \"I've wasted my hours.\" - Leonardo da Vinci Why do backslashes appear, and what can I do to remove them? Thank you! - Dimitri Vorontzov