dg Posted February 19, 2008 Share Posted February 19, 2008 hi all, i m having chr ( 0 ) in php program but whenever it execute this line, it breaks out from the program .... can anyone tell me y? i want a ascii NUL in the code thanx --dg Quote Link to comment Share on other sites More sharing options...
dg Posted February 19, 2008 Author Share Posted February 19, 2008 even i realized that this submission fails if i type chr ( 0 ) properly Quote Link to comment Share on other sites More sharing options...
timmy0320 Posted February 19, 2008 Share Posted February 19, 2008 Show some code if you want some help Quote Link to comment Share on other sites More sharing options...
dg Posted February 19, 2008 Author Share Posted February 19, 2008 <?php echo "#######\n"; echo chr ( 0 ); echo "$$$$$$$\n"; ?> // purposely chr ( 0 ) ....is written like this since ther's problem while posting Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted February 19, 2008 Share Posted February 19, 2008 if you print the null character to the browser it will break the output since the browser get the null character and does not print anything after that.. the browser is ascii based... null characters should not be used. 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.