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 Link to comment https://forums.phpfreaks.com/topic/91827-urgent-help-required/ 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 Link to comment https://forums.phpfreaks.com/topic/91827-urgent-help-required/#findComment-470290 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 Link to comment https://forums.phpfreaks.com/topic/91827-urgent-help-required/#findComment-470304 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 Link to comment https://forums.phpfreaks.com/topic/91827-urgent-help-required/#findComment-470316 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. Link to comment https://forums.phpfreaks.com/topic/91827-urgent-help-required/#findComment-470335 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.