Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6673 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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
Posted

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

Posted

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.

Posted

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.

This topic is 6673 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.