Jump to content

[SOLVED] multi line string displays blank?


inactive

Recommended Posts

Hey guys,

 

I know I must be doing something really stupid here, but my code below just shows up blank (and I have error reporting to E_ALL, so there's definitely no error ).

 

The weird thing is I have done something similar before and it has worked fine... although that was a different server, so perhaps there is a php config setting somewhere I need to change...

 

Anyway,

 

<?php

$my_var='<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
    <bean id="csvOrderExtractProcess" class="com.salesforce.lexiloader.process.ProcessRunner" singleton="false">
      <description></description>
        <property name="name" value="adlprocess"/>
        <property name="configOverrideMap">';

echo $my_var;

?>

 

Just returns blank. Any ideas?

 

Thanks,

 

~Mitch

Link to comment
https://forums.phpfreaks.com/topic/99481-solved-multi-line-string-displays-blank/
Share on other sites

Oh! Gah! Yes I knew I was an idiot.

 

I was testing this output (before writing it to a file) and totally forgot that now its in a browser, it will be treated like mark-up lol...

 

Yes, displays blank in browser, but shows up in the source (as it should).

 

Thanks Don.

 

[CLOSED]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.