This should not give you any error. Not even if short_open_tags are on
as printed output is not parsed. What is the error message and what
version of php are you running? It works for me (php 4.3.2).
Steven Apostolou wrote:
Hello,
The folowing code gives an error:
print "";
This is probably b
try this
print "<\?xml version=\"1.0\"\?>";
This might fix it.
- Original Message -
From: "Steven Apostolou" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 6:33 AM
Subject: [PHP] outputting xml declaration
> Hello,
>
> The folowing code gives an error
Ok never mind about what I said, brain lapse, I was
focusing so hard on the ? that I didn't realize
it was next to the > . Doh.
On Wed, 2003-07-02 at 09:43, Jay Blanchard wrote:
> [snip]
> print "";
>
> This is probably because I print a questionmark? How can I avoid that an
> error is generated
you can always print like so...
print '';
Then the parser does not try to parse inside the line. However, I dont
know what will happen when you have short_open_tags in your php.ini file
turned on...i usually turn it all of..
--
BigDog
On Wed, 2003-07-02 at 07:33, Steven Apostolou wrote:
> Hel
Disable short open tags.
yann
On Wed, 2003-07-02 at 09:33, Steven Apostolou wrote:
> Hello,
>
> The folowing code gives an error:
>
> print "";
>
> This is probably because I print a questionmark? How can I avoid that an
> error is generated?
>
> Besides it's not an error in the way that it g
[snip]
print "";
This is probably because I print a questionmark? How can I avoid that an
error is generated?
Besides it's not an error in the way that it gives an errorstring but it
writes the output in the error_log of apache...
[/snip]
Search the archives of this list, the subject comes up of
Question mark's are not special or reserved in strings
like $'s are. That shouldn't be the problem.
On Wed, 2003-07-02 at 09:33, Steven Apostolou wrote:
> Hello,
>
> The folowing code gives an error:
>
> print "";
>
> This is probably because I print a questionmark? How can I avoid that an
>
7 matches
Mail list logo