October 8, 200619 yr 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
October 9, 200619 yr Newbies 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
October 9, 200619 yr Author 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.
October 11, 200619 yr 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.
Create an account or sign in to comment