mcyrulik Posted October 8, 2006 Posted October 8, 2006 I am trying out the PHP plugin, and so far it has been pure genius. I have one issue, and it is quite possible that it is my code. On win XP p2, FM 8.5, I cannot get the n new line character to work. I would post code, but even if I do a simple echo "testn"; with varying combinations of quote marks(single quotes, double quotes, no quotes) I get a PHP warning(see below). if I do an echo test; I get the word test in my output field. Any ideas? The warning i get: PHP Warning: Unexpected character in input: '' (ASCII=92) state=1 in Embedded code on line 1
Newbies colinf Posted October 9, 2006 Newbies Posted October 9, 2006 Hi, I can't replicate your problem. Maybe it is something to do with escaping the quote characters? Anyway, the following code works for me: PHP_RunScript("echo "testn";" ) Cheers, Colin
mcyrulik Posted October 9, 2006 Author Posted October 9, 2006 Yeah, after I did some more testing, I find I am getting inconsistant reults. It still isn't working for me in some scenarios, but I am trying to narrow those down so that I can give more detailed info, maybe even a sample file. I'll keep you posted.
Micah Woods Posted October 11, 2006 Posted October 11, 2006 It turned out that the issue was due to the use of smart quotes. This is controlled in FileMaker under file options. PHP doesn't recognize smart quotes and thus the error.
Recommended Posts
This topic is 6869 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now