Hi,
I use the Freeway action PHP Mark UP on a page to add PHP code.
If enter a simple line such as $to=“email@hidden”; Freeway converts this to something like $to=‘a@a.com’; which actually fails on the server I"m hosting this on.
Is there anything I can do to stop Freeway converting this? I understand these are just ASCII codes, but the fact that it’s failing (server error) means I need to find a fix. If I manually change the php file and FTP up it works fine.
Sometime around 7/1/09 (at 07:59 -0500) johnrob said:
I use the Freeway action PHP Mark UP on a page to add PHP code.
If enter a simple line such as $to=“email@hidden”; Freeway
converts this to something like
$to=‘a@a.com’;
Have you wrapped the code in the opening and closing PHP tags? This
may be a dumb question - I use regular markup items rather than
actions to drop nuggests of PHP code into my Freeway pages, and I
can’t remember what that action requires.
I use the Markup item for adding php on all if not most of my sites
and do not seem to have a problem with this, the code shows as
$to=‘a@a.com’; on the page code created
by FW but it looks like it should on the page even if set using a PHP
variable. My preferences are set to ‘Encode with entities’.
What is the problem you are actually having with this?
johnrob, I see you where talking about the PHP mark-up action, read
the email too quickly I guess and thought you where talking about
using mark-up… sorry
On Jan 7, 2009, at 2:39 PM, Mike B wrote:
I use the Markup item for adding php on all if not most of my sites
and do not seem to have a problem with this, the code shows as
$to=‘a@a.com’; on the page code
created by FW but it looks like it should on the page even if set
using a PHP variable. My preferences are set to ‘Encode with
entities’.