Jump to content
Larry Ullman's Book Forums

Recommended Posts

I'm very surprised: I recently received php code written on a PC with a link containing backslash:


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?

Link to post
Share on other sites

On Windows, the backslash is commonly used in paths. However, the backslash is the escape character, so that line is read as \d (and escaping "d" doesn't do anything). The options are to use a double backslash (\\) or use a forward slash (/). 

  • Upvote 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...