PDA

View Full Version : header fails for header("Content-type: application/x-amf");


philip142au
08-11-2010, 02:53 PM
Hi,

I am trying to send amfphp data back to the client using amfphp library.

The function
header fails for header("Content-type: application/x-amf");

Just fails, I don't know why.

How can I find an error message?

I tried normal PHP error reporting but it didn't work.

Thanks, Philip

emil
08-23-2010, 08:58 PM
Hi,

How does the call fail? Does it just not print out the header? If so, then it's likely you have already output some data and it's too late to print a header. This can be a tricky issue. Even if you have something like:

<?php $x = 0; ?>
<?php header("Content-type: application/x-amf" ); ?>

The header call can fail because of the newline between the two <?php blocks.

If that's not the case, you can try turning on logging on Quercus in either your resin.xml or resin-web.xml:

<logger name="com.caucho.quercus" level="fine"/>

Best,
Emil

Epimbestknow
09-04-2011, 02:31 AM
Hey admin, i just test yahoo, please dont remove this topic, i need only one link from your forum ;)
????? ????? (http://www.seo-champion.co.il)