thenature4u Posted April 18, 2008 Share Posted April 18, 2008 i want to write the following data to a file. <? define('ABOUT US','We are the development People'); define('ABOUT US','We are the development People'); define('ABOUT US','We are the development People'); define('ABOUT US','We are the development People'); ?> i want to write the code as it is in output file. But in the output file, the code is displaying like this, <? <br>define('ABOUT US','We are the development People'); <br>define('ABOUT US','We are the development People'); <br>define('ABOUT US','We are the development People'); <br>define('ABOUT US','We are the development People'); <br>?><br> please help me Quote Link to comment Share on other sites More sharing options...
thenature4u Posted April 18, 2008 Author Share Posted April 18, 2008 are there any html functions which not let the <br /> to insert into the output Quote Link to comment Share on other sites More sharing options...
947740 Posted April 18, 2008 Share Posted April 18, 2008 I would just define a variable once and echo it 5 times. You should not have that problem if you do that. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 19, 2008 Share Posted April 19, 2008 you can't redefine a constant - if you try to do so it will fail. if that php code is showing when you run the page then either the php engine is not running or the script is not being recognized as a php file. Quote Link to comment Share on other sites More sharing options...
haku Posted April 19, 2008 Share Posted April 19, 2008 This is a double post - the OP posted the thread in the PHP section too. They are using fwrite to write a file, but ending up with an extra carriage return between each line. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.