catalunian Posted January 15, 2010 Posted January 15, 2010 Hi y'all Expert help needed Trying to recover from an eval hack after I cleaned and restored I am slowly trying to solve the few problems it has left behind. One of these is when adding a new box page, the program now recognises every apostrophe in the "Put text here" section with the error message"Parse error: syntax error, unexpected T_STRING "so can anybody tell me how to stop this.Can I repair the files or maybe can I insert any code to prevent this or do I just remove every apostrophe... Muchas gracias Catalunian I live for today I might die tomorrow
jdvb Posted January 15, 2010 Posted January 15, 2010 Hi y'all Expert help needed Trying to recover from an eval hack after I cleaned and restored I am slowly trying to solve the few problems it has left behind. One of these is when adding a new box page, the program now recognises every apostrophe in the "Put text here" section with the error message"Parse error: syntax error, unexpected T_STRING "so can anybody tell me how to stop this.Can I repair the files or maybe can I insert any code to prevent this or do I just remove every apostrophe... Muchas gracias Catalunian I have not got a clue what you are talking about, where or what.You are not rather specific. Are you talking about a form on your website, or the program code itself? If the last, a text string is defined between apostrophes: like: "PUT TEXT HERE''''''" //the '''' won't break the string 'PUT TEXT HERE"""""' // the """" won't break the string alternatively you can escape them: "PUT TEXT HERE\"\"" //the \" won't break the string 'PUT TEXT HERE\'\'""""' //the \' won't break the string so when a text string starts with ' you need to escape all ' that you want in the string. when a string starts with " you need to escape all " that you want in the string. below some examples, the striped through parts are outside of a string and will return the error: 'I write comma's a lot!' 'I write comma\'s a lot!' "I write comma's a lot!" "When I write that something is "funny" with quotes around it, I mean something different then when I don't put quotes around it." "When I write that something is \"funny" with quotes around it, I mean something different then when I don't put quotes around it." "When I write that something is \"funny\" with quotes around it, I mean something different then when I don't put quotes around it." 'When I write that something is "funny" with quotes around it, I mean something different then when I don't put quotes around it.' 'When I write that something is "funny" with quotes around it, I mean something different then when I don\'t put quotes around it.'
catalunian Posted January 21, 2010 Author Posted January 21, 2010 I have not got a clue what you are talking about, where or what. You are not rather specific. Are you talking about a form on your website, or the program code itself? If the last, a text string is defined between apostrophes: like: "PUT TEXT HERE''''''" //the '''' won't break the string 'PUT TEXT HERE"""""' // the """" won't break the string alternatively you can escape them: "PUT TEXT HERE\"\"" //the \" won't break the string 'PUT TEXT HERE\'\'""""' //the \' won't break the string so when a text string starts with ' you need to escape all ' that you want in the string. when a string starts with " you need to escape all " that you want in the string. below some examples, the striped through parts are outside of a string and will return the error: 'I write comma's a lot!' 'I write comma\'s a lot!' "I write comma's a lot!" "When I write that something is "funny" with quotes around it, I mean something different then when I don't put quotes around it." "When I write that something is \"funny" with quotes around it, I mean something different then when I don't put quotes around it." "When I write that something is \"funny\" with quotes around it, I mean something different then when I don't put quotes around it." 'When I write that something is "funny" with quotes around it, I mean something different then when I don't put quotes around it.' 'When I write that something is "funny" with quotes around it, I mean something different then when I don\'t put quotes around it.' I live for today I might die tomorrow
catalunian Posted January 21, 2010 Author Posted January 21, 2010 Thanks for that answer I did not havel the problem before I was hacked now I will wade through all the text to repair this. ;) I live for today I might die tomorrow
Recommended Posts
Archived
This topic is now archived and is closed to further replies.