Mailing List Archive

PHP Not working correctly
I install php and it looked like it was working, but when I got into a
little bit harder stuff I noticed that php is exiting the source when
ever it comes across a '>'. I am wondering where can I change a setting
so I dont exit the source.


--
gentoo-user@gentoo.org mailing list
Re: PHP Not working correctly [ In reply to ]
On Wed, 29 Sep 2004, Timothy Johnson wrote:

> I install php and it looked like it was working, but when I got into a
> little bit harder stuff I noticed that php is exiting the source when
> ever it comes across a '>'. I am wondering where can I change a setting
> so I dont exit the source.

Are you using the command-line php or mod_php?

As far as mod_php and web pages go, normally PHP code is delimited by
<?php and ?> characters.


--
Aj.
Sys. Admin / Developer

--
gentoo-user@gentoo.org mailing list
Re: PHP Not working correctly [ In reply to ]
On Thursday 30 September 2004 18:01, Ajai Khattri wrote:
> On Wed, 29 Sep 2004, Timothy Johnson wrote:
> > I install php and it looked like it was working, but when I got into a
> > little bit harder stuff I noticed that php is exiting the source when
> > ever it comes across a '>'. I am wondering where can I change a setting
> > so I dont exit the source.
>
> Are you using the command-line php or mod_php?
>
> As far as mod_php and web pages go, normally PHP code is delimited by
> <?php and ?> characters.

It can also be delimeted by the ASP style <% %>, as well as the short PHP for
<? ?>.
You can't set the delimeter manually though, which I was something I looked
for earlier.

--
Mike Williams
Re: PHP Not working correctly [ In reply to ]
On Thu, 30 Sep 2004, Mike Williams wrote:

> It can also be delimeted by the ASP style <% %>, as well as the short PHP for
> <? ?>.

I believe you have to enable the ASP-style tags in your php.ini - so the
default delimiters are prob. more portable. Also, ASP-style tags dont work
in XML documents so for these two reasons I wouldn't recommend using them.

--
Aj.
Sys. Admin / Developer

--
gentoo-user@gentoo.org mailing list