\n being output as a space
| From: | Patrick Dunford | Date: | Mon, 04 Dec 2000 00:58:16 +0000 |
| Subject: | \n being output as a space | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-28487@lists.php.net to get a copy of this message | ||
I am having a problem with the following code:
echo "\nUploaded $upload_name to ftp.godzone.net.nz as
$newfilename";
The output does not appear on a newline, instead there is a space between
this line and the previous line, all output on the same line. In other words
it looks like the \n was rendered as a space character.
User agent is IE5.01, Windows 95.
Here is the phpinfo() output.
PHP Version 4.0.3pl1
System Linux agree-2 2.2.16-3 #1 Mon Jun 19 18:10:14 EDT 2000 i686 unknown
Build Date Dec 2 2000
Configure Command './configure' '--without-gd'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-ftp'
'--with-mysql=shared' '--with-pgsql=shared'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib
ZEND_DEBUG disabled
Thread Safety disabled
This program makes use of the Zend scripting language engine:
Zend Engine v1.0.3, Copyright (c) 1998-2000 Zend Technologies
----------------------------------------------------------------------------
----
PHP 4.0 Credits
----------------------------------------------------------------------------
----
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference
On On
arg_separator
& &
asp_tags
On On
auto_append_file
no value no value
auto_prepend_file
no value no value
browscap
no value no value
default_charset
no value no value
default_mimetype
text/html text/html
define_syslog_variables
Off Off
disable_functions
no value no value
display_errors
On On
display_startup_errors
Off Off
doc_root
no value no value
enable_dl
On On
error_append_string
Off Off
error_log
no value no value
error_prepend_string
Off Off
error_reporting
no value no value
expose_php
On On
extension_dir
/usr/local/lib/php/extensions/no-debug-non-zts-20000809
/usr/local/lib/php/extensions/no-debug-non-zts-20000809
file_uploads
1 1
gpc_order
GPC GPC
highlight.bg
#FFFFFF #FFFFFF
highlight.comment
#FF8000 #FF8000
highlight.default
#0000BB #0000BB
highlight.html
#000000 #000000
highlight.keyword
#007700 #007700
highlight.string
#DD0000 #DD0000
html_errors
On On
ignore_user_abort
Off Off
implicit_flush
Off Off
include_path
.:/usr/local/lib/php .:/usr/local/lib/php
log_errors
Off Off
magic_quotes_gpc
On On
magic_quotes_runtime
Off Off
magic_quotes_sybase
Off Off
max_execution_time
30 30
open_basedir
no value no value
output_buffering
Off Off
post_max_size
8M 8M
precision
14 14
register_argc_argv
On On
register_globals
On On
safe_mode
Off Off
safe_mode_exec_dir
1 1
sendmail_from
no value no value
sendmail_path
/usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
short_open_tag
On On
SMTP
localhost localhost
sql.safe_mode
Off Off
track_errors
Off Off
upload_max_filesize
2M 2M
upload_tmp_dir
no value no value
user_dir
no value no value
variables_order
no value no value
y2k_compliance
Off Off
xml
XML Support active
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i
Directive Local Value Master Value
assert.active
1 1
assert.bail
0 0
assert.callback
no value no value
assert.quiet_eval
0 0
assert.warning
1 1
safe_mode_allowed_env_vars
PHP_ PHP_
safe_mode_protected_env_vars
LD_LIBRARY_PATH LD_LIBRARY_PATH
session.use_trans_sid
1 1
session
Session Support enabled
Directive Local Value Master Value
session.auto_start
Off Off
session.cache_expire
180 180
session.cache_limiter
nocache nocache
session.cookie_domain
no value no value
session.cookie_lifetime
0 0
session.cookie_path
/ /
session.entropy_file
no value no value
session.entropy_length
0 0
session.gc_maxlifetime
1440 1440
session.gc_probability
1 1
session.name
PHPSESSID PHPSESSID
session.referer_check
no value no value
session.save_handler
files files
session.save_path
/tmp /tmp
session.serialize_handler
php php
session.use_cookies
On On
posix
Revision $Revision: 1.26 $
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 3.1 09-Feb-2000
ftp
FTP support enabled
apache
APACHE_INCLUDE
APACHE_TARGET
Apache Version Apache/1.3.12
Apache Release 10312100
Apache API Version 19990320
Hostname:Port www.pdunford.godzone.net.nz:80
User/Group nobody(99)/99
Max Requests Per Child: 30
Keep Alive: on
Max Per Connection: 100
Timeouts Connection: 300
Keep-Alive: 15
Server Root /usr/local/apache
Loaded Modules mod_php4, mod_perl, mod_ssl, mod_usertrack, mod_unique_id,
mod_so, mod_status, mod_setenvif, mod_rewrite, mod_proxy, mod_negotiation,
mod_minivend, mod_mime_magic, mod_mime, mod_log_config, mod_info,
mod_include, mod_imap, mod_headers, mod_expires, mod_env, mod_dir, mod_cgi,
mod_autoindex, mod_auth, mod_alias, mod_actions, mod_access, http_core
Apache Environment
Variable Value
BrowserHasFrames 1
BrowserHasJava 1
BrowserHasJScript 1
BrowserHasTables 1
DOCUMENT_ROOT /home/pdunford
HTTP_ACCEPT application/vnd.ms-excel, application/msword,
application/x-comet, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, */*
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE en-nz
HTTP_HOST w3.pdunford.godzone.net.nz
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.01; Windows 95; ICONZ)
PATH /usr/local/apache/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
REMOTE_ADDR 210.55.230.180
REMOTE_PORT 12638
SCRIPT_FILENAME /home/pdunford/_site/_scripts/phpinfo.php
SERVER_ADDR 203.167.237.2
SERVER_ADMIN WebMaster@pdunford.godzone.net.nz
SERVER_NAME www.pdunford.godzone.net.nz
SERVER_PORT 80
SERVER_SIGNATURE Apache/1.3.12 Server at www.pdunford.godzone.net.nz Port 80
SERVER_SOFTWARE Apache/1.3.12 (Unix) PHP/4.0.3pl1 mod_perl/1.24
mod_ssl/2.6.6 OpenSSL/0.9.5a
UNIQUE_ID Oirqycun7QIAAD-QMWs
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /_site/_scripts/phpinfo.php
SCRIPT_NAME /_site/_scripts/phpinfo.php
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /_site/_scripts/phpinfo.php HTTP/1.0
Accept application/vnd.ms-excel, application/msword, application/x-comet,
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, */*
Accept-Encoding gzip, deflate
Accept-Language en-nz
Host w3.pdunford.godzone.net.nz
User-Agent Mozilla/4.0 (compatible; MSIE 5.01; Windows 95; ICONZ)
HTTP Response Headers
Cache-Control max-age=900
Expires Mon, 04 Dec 2000 01:07:25 GMT
X-Powered-By PHP/4.0.3pl1
Connection close
Content-Type text/html
Additional Modules
Environment
Variable Value
LOGNAME root
MAILTO root
TERM dumb
HOSTTYPE i386
PATH /usr/local/apache/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
HOME /
SHELL /bin/bash
OSTYPE Linux
SHLVL 7
_ /usr/local/apache/bin/httpd
PHP Variables
Variable Value
PHP_SELF /_site/_scripts/phpinfo.php
HTTP_SERVER_VARS["BrowserHasFrames"] 1
HTTP_SERVER_VARS["BrowserHasJava"] 1
HTTP_SERVER_VARS["BrowserHasJScript"] 1
HTTP_SERVER_VARS["BrowserHasTables"] 1
HTTP_SERVER_VARS["DOCUMENT_ROOT"] /home/pdunford
HTTP_SERVER_VARS["HTTP_ACCEPT"] application/vnd.ms-excel,
application/msword, application/x-comet, image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, */*
HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"] gzip, deflate
HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"] en-nz
HTTP_SERVER_VARS["HTTP_HOST"] w3.pdunford.godzone.net.nz
HTTP_SERVER_VARS["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 5.01;
Windows 95; ICONZ)
HTTP_SERVER_VARS["PATH"]
/usr/local/apache/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
HTTP_SERVER_VARS["REMOTE_ADDR"] 210.55.230.180
HTTP_SERVER_VARS["REMOTE_PORT"] 12638
HTTP_SERVER_VARS["SCRIPT_FILENAME"]
/home/pdunford/_site/_scripts/phpinfo.php
HTTP_SERVER_VARS["SERVER_ADDR"] 203.167.237.2
HTTP_SERVER_VARS["SERVER_ADMIN"] WebMaster@pdunford.godzone.net.nz
HTTP_SERVER_VARS["SERVER_NAME"] www.pdunford.godzone.net.nz
HTTP_SERVER_VARS["SERVER_PORT"] 80
HTTP_SERVER_VARS["SERVER_SIGNATURE"] Apache/1.3.12 Server at
www.pdunford.godzone.net.nz Port 80
HTTP_SERVER_VARS["SERVER_SOFTWARE"] Apache/1.3.12 (Unix) PHP/4.0.3pl1
mod_perl/1.24 mod_ssl/2.6.6 OpenSSL/0.9.5a
HTTP_SERVER_VARS["UNIQUE_ID"] Oirqycun7QIAAD-QMWs
HTTP_SERVER_VARS["GATEWAY_INTERFACE"] CGI/1.1
HTTP_SERVER_VARS["SERVER_PROTOCOL"] HTTP/1.0
HTTP_SERVER_VARS["REQUEST_METHOD"] GET
HTTP_SERVER_VARS["QUERY_STRING"]
HTTP_SERVER_VARS["REQUEST_URI"] /_site/_scripts/phpinfo.php
HTTP_SERVER_VARS["SCRIPT_NAME"] /_site/_scripts/phpinfo.php
HTTP_SERVER_VARS["PATH_TRANSLATED"]
/home/pdunford/_site/_scripts/phpinfo.php
HTTP_SERVER_VARS["PHP_SELF"] /_site/_scripts/phpinfo.php
HTTP_SERVER_VARS["argv"] Array
(
)
HTTP_SERVER_VARS["argc"] 0
HTTP_ENV_VARS["LOGNAME"] root
HTTP_ENV_VARS["MAILTO"] root
HTTP_ENV_VARS["TERM"] dumb
HTTP_ENV_VARS["HOSTTYPE"] i386
HTTP_ENV_VARS["PATH"]
/usr/local/apache/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
HTTP_ENV_VARS["HOME"] /
HTTP_ENV_VARS["SHELL"] /bin/bash
HTTP_ENV_VARS["OSTYPE"] Linux
HTTP_ENV_VARS["SHLVL"] 7
HTTP_ENV_VARS["_"] /usr/local/apache/bin/httpd
PHP License
This program is free software; you can redistribute it and/or modify it
under the terms of the PHP License as published by the PHP Group and
included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any questions
about PHP licensing, please contact license@php.net.
=======================================================================
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/
Therefore I tell you that no one who is speaking by the Spirit
of God says, "Jesus be cursed," and no one can say, "Jesus is
Lord," except by the Holy Spirit.
-- 1 Corinthians 12:3
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20001203
=======================================================================
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/