apache - How to output single character text with php? -
I am implementing an API for some service that has only one content in '0' or '1' Letter should be back in the letters
header ('content-type: text / plain'); echo "1";
and
header ('content-type: text / plain'); Print "1"; I also tried to leave the header line, but I always get a new line character at the end of the output.
This is the output of PHP-V.PAP 5.3.28 (CLI) (Created: 15 December 2013 17:43:05) Copyright (C) 1997-2013 PHP Group Zend Engine v2.3.0, Copyright (C) 1998-2013 Zend Technologies httpd -v
Server version has Outlook: Apache / 2.2.23 (UNIX) Server created: November 25, 2012 15:00:50
This code will only help in one file :)
& lt ;? Php echo 1;
Comments
Post a Comment