Xu Wei Jie Posted April 4, 2009 Share Posted April 4, 2009 How to suppress X-Powered-By: PHP/4.4.9 headers? I set the expose_php in the .ini file to Off but the server still prompt such headers. Quote Link to comment https://forums.phpfreaks.com/topic/152509-suppress-php-headers/ Share on other sites More sharing options...
Daniel0 Posted April 4, 2009 Share Posted April 4, 2009 Did you restart the webserver, and are you sure it's the correct file you changed? Quote Link to comment https://forums.phpfreaks.com/topic/152509-suppress-php-headers/#findComment-801051 Share on other sites More sharing options...
Xu Wei Jie Posted April 4, 2009 Author Share Posted April 4, 2009 I make changes to the php.ini-dist and php.ini-recommended files in the php-4.4.9 folder. Due to the fact that I installed it on a Solaris zone, I also tried rebooting as root user using the command 'init 6' Did I miss out on anything here? Â Quote Link to comment https://forums.phpfreaks.com/topic/152509-suppress-php-headers/#findComment-801060 Share on other sites More sharing options...
Daniel0 Posted April 4, 2009 Share Posted April 4, 2009 Then you did edit the wrong one. Find the one that's called php.ini. The output of phpinfo() will tell you where it is. Quote Link to comment https://forums.phpfreaks.com/topic/152509-suppress-php-headers/#findComment-801063 Share on other sites More sharing options...
Xu Wei Jie Posted April 4, 2009 Author Share Posted April 4, 2009 It prompt the path to be /usr/local/lib but when I went there, I can't locate it. and expose_php cannot be set by ini_set. Quote Link to comment https://forums.phpfreaks.com/topic/152509-suppress-php-headers/#findComment-801084 Share on other sites More sharing options...
Daniel0 Posted April 4, 2009 Share Posted April 4, 2009 What's supposed to be the full path to your php.ini config file according to phpinfo()? Quote Link to comment https://forums.phpfreaks.com/topic/152509-suppress-php-headers/#findComment-801096 Share on other sites More sharing options...
Xu Wei Jie Posted April 4, 2009 Author Share Posted April 4, 2009 /usr/local/lib is the full path as prompted Quote Link to comment https://forums.phpfreaks.com/topic/152509-suppress-php-headers/#findComment-801100 Share on other sites More sharing options...
Daniel0 Posted April 4, 2009 Share Posted April 4, 2009 That's a path, not a file. Take a look at "Loaded Configuration File" and/or "additional .ini files parsed". Quote Link to comment https://forums.phpfreaks.com/topic/152509-suppress-php-headers/#findComment-801113 Share on other sites More sharing options...
Xu Wei Jie Posted April 4, 2009 Author Share Posted April 4, 2009 This is the entire output of phpinfo(). I cannot find the Loaded Configuration File item nor other ini files  X-Powered-By: PHP/4.4.9 Content-type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html><head> <style type="text/css"> body {background-color: #ffffff; color: #000000;} body, td, th, h1, h2 {font-family: sans-serif;} pre {margin: 0px; font-family: monospace;} a:link {color: #000099; text-decoration: none; background-color: #ffffff;} a:hover {text-decoration: underline;} table {border-collapse: collapse;} .center {text-align: center;} .center table { margin-left: auto; margin-right: auto; text-align: left;} .center th { text-align: center !important; } td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;} h1 {font-size: 150%;} h2 {font-size: 125%;} .p {text-align: left;} .e {background-color: #ccccff; font-weight: bold; color: #000000;} .h {background-color: #9999cc; font-weight: bold; color: #000000;} .v {background-color: #cccccc; color: #000000;} i {color: #666666; background-color: #cccccc;} img {float: right; border: 0px;} hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;} </style> <title>phpinfo()</title><meta name="ROBOTS" content="NOINDEX,NOFOLLOW,NOARCHIVE" /></head> <body><div class="center"> <table border="0" cellpadding="3" width="600"> <tr class="h"><td> <a href="http://www.php.net/"><img border="0" src="?=PHPE9568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo" /></a><h1 class="p">PHP Version 4.4.9</h1> </td></tr> </table><br /> <table border="0" cellpadding="3" width="600"> <tr><td class="e">System </td><td class="v">SunOS xuweijie-z.comp.nus.edu.sg 5.10 Generic_118833-24 sun4v </td></tr> <tr><td class="e">Build Date </td><td class="v">Apr 4 2009 00:58:59 </td></tr> <tr><td class="e">Configure Command </td><td class="v"> './configure' </td></tr> <tr><td class="e">Server API </td><td class="v">CGI </td></tr> <tr><td class="e">Virtual Directory Support </td><td class="v">disabled </td></tr> <tr><td class="e">Configuration File (php.ini) Path </td><td class="v">/usr/local/lib </td></tr> <tr><td class="e">PHP API </td><td class="v">20020918 </td></tr> <tr><td class="e">PHP Extension </td><td class="v">20020429 </td></tr> <tr><td class="e">Zend Extension </td><td class="v">20050606 </td></tr> <tr><td class="e">Debug Build </td><td class="v">no </td></tr> <tr><td class="e">Zend Memory Manager </td><td class="v">enabled </td></tr> <tr><td class="e">Thread Safety </td><td class="v">disabled </td></tr> <tr><td class="e">Registered PHP Streams </td><td class="v">php, http, ftp </td></tr> </table><br /> <table border="0" cellpadding="3" width="600"> <tr class="v"><td> <a href="http://www.zend.com/"><img border="0" src="?=PHPE9568F35-D428-11d2-A769-00AA001ACF42" alt="Zend logo" /></a> This program makes use of the Zend Scripting Language Engine:<br />Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies </td></tr> </table><br /> <hr /> <h1><a href="?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000">PHP Credits</a></h1> <hr /> <h1>Configuration</h1> <h2>PHP Core</h2> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">allow_call_time_pass_reference</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">allow_url_fopen</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">always_populate_raw_post_data</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">arg_separator.input</td><td class="v">&</td><td class="v">&</td></tr> <tr><td class="e">arg_separator.output</td><td class="v">&</td><td class="v">&</td></tr> <tr><td class="e">asp_tags</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">auto_append_file</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">auto_prepend_file</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">browscap</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">default_charset</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">default_mimetype</td><td class="v">text/html</td><td class="v">text/html</td></tr> <tr><td class="e">define_syslog_variables</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">disable_classes</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">disable_functions</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">display_errors</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">display_startup_errors</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">doc_root</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">docref_ext</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">docref_root</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">enable_dl</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">error_append_string</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">error_log</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">error_prepend_string</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">error_reporting</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">expose_php</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">extension_dir</td><td class="v">/usr/local/lib/php/extensions/no-debug-non-zts-20020429</td><td class="v">/usr/local/lib/php/extensions/no-debug-non-zts-20020429</td></tr> <tr><td class="e">file_uploads</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">gpc_order</td><td class="v">GPC</td><td class="v">GPC</td></tr> <tr><td class="e">highlight.bg</td><td class="v"><font style="color: #FFFFFF">#FFFFFF</font></td><td class="v"><font style="color: #FFFFFF">#FFFFFF</font></td></tr> <tr><td class="e">highlight.comment</td><td class="v"><font style="color: #FF8000">#FF8000</font></td><td class="v"><font style="color: #FF8000">#FF8000</font></td></tr> <tr><td class="e">highlight.default</td><td class="v"><font style="color: #0000BB">#0000BB</font></td><td class="v"><font style="color: #0000BB">#0000BB</font></td></tr> <tr><td class="e">highlight.html</td><td class="v"><font style="color: #000000">#000000</font></td><td class="v"><font style="color: #000000">#000000</font></td></tr> <tr><td class="e">highlight.keyword</td><td class="v"><font style="color: #007700">#007700</font></td><td class="v"><font style="color: #007700">#007700</font></td></tr> <tr><td class="e">highlight.string</td><td class="v"><font style="color: #DD0000">#DD0000</font></td><td class="v"><font style="color: #DD0000">#DD0000</font></td></tr> <tr><td class="e">html_errors</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">ignore_repeated_errors</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">ignore_repeated_source</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">ignore_user_abort</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">implicit_flush</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">include_path</td><td class="v">.:/usr/local/lib/php</td><td class="v">.:/usr/local/lib/php</td></tr> <tr><td class="e">log_errors</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">log_errors_max_len</td><td class="v">1024</td><td class="v">1024</td></tr> <tr><td class="e">magic_quotes_gpc</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">magic_quotes_runtime</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">magic_quotes_sybase</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">max_execution_time</td><td class="v">30</td><td class="v">30</td></tr> <tr><td class="e">max_input_nesting_level</td><td class="v">500</td><td class="v">500</td></tr> <tr><td class="e">max_input_time</td><td class="v">-1</td><td class="v">-1</td></tr> <tr><td class="e">open_basedir</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">output_buffering</td><td class="v">0</td><td class="v">0</td></tr> <tr><td class="e">output_handler</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">post_max_size</td><td class="v">8M</td><td class="v">8M</td></tr> <tr><td class="e">precision</td><td class="v">14</td><td class="v">14</td></tr> <tr><td class="e">register_argc_argv</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">register_globals</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">report_memleaks</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">safe_mode</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">safe_mode_exec_dir</td><td class="v">/usr/local/php/bin</td><td class="v">/usr/local/php/bin</td></tr> <tr><td class="e">safe_mode_gid</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">safe_mode_include_dir</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">sendmail_from</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">sendmail_path</td><td class="v">/usr/sbin/sendmail -t -i </td><td class="v">/usr/sbin/sendmail -t -i </td></tr> <tr><td class="e">serialize_precision</td><td class="v">100</td><td class="v">100</td></tr> <tr><td class="e">short_open_tag</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">SMTP</td><td class="v">localhost</td><td class="v">localhost</td></tr> <tr><td class="e">smtp_port</td><td class="v">25</td><td class="v">25</td></tr> <tr><td class="e">sql.safe_mode</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">track_errors</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">unserialize_callback_func</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">upload_max_filesize</td><td class="v">2M</td><td class="v">2M</td></tr> <tr><td class="e">upload_tmp_dir</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">user_dir</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">variables_order</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">xmlrpc_error_number</td><td class="v">0</td><td class="v">0</td></tr> <tr><td class="e">xmlrpc_errors</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">y2k_compliance</td><td class="v">On</td><td class="v">On</td></tr> </table><br /> <h2><a name="module_ctype">ctype</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">ctype functions </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_mysql">mysql</a></h2> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>MySQL Support</th><th>enabled</th></tr> <tr><td class="e">Active Persistent Links </td><td class="v">0 </td></tr> <tr><td class="e">Active Links </td><td class="v">0 </td></tr> <tr><td class="e">Client API version </td><td class="v">3.23.49 </td></tr> <tr><td class="e">MYSQL_MODULE_TYPE </td><td class="v">builtin </td></tr> <tr><td class="e">MYSQL_SOCKET </td><td class="v">/tmp/mysql.sock </td></tr> <tr><td class="e">MYSQL_INCLUDE </td><td class="v"><i>no value</i> </td></tr> <tr><td class="e">MYSQL_LIBS </td><td class="v"><i>no value</i> </td></tr> </table><br /> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">mysql.allow_persistent</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">mysql.connect_timeout</td><td class="v">60</td><td class="v">60</td></tr> <tr><td class="e">mysql.default_host</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">mysql.default_password</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">mysql.default_port</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">mysql.default_socket</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">mysql.default_user</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">mysql.max_links</td><td class="v">Unlimited</td><td class="v">Unlimited</td></tr> <tr><td class="e">mysql.max_persistent</td><td class="v">Unlimited</td><td class="v">Unlimited</td></tr> <tr><td class="e">mysql.trace_mode</td><td class="v">Off</td><td class="v">Off</td></tr> </table><br /> <h2><a name="module_overload">overload</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">User-Space Object Overloading Support </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_pcre">pcre</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">PCRE (Perl Compatible Regular Expressions) Support </td><td class="v">enabled </td></tr> <tr><td class="e">PCRE Library Version </td><td class="v">7.7 2008-05-07 </td></tr> </table><br /> <h2><a name="module_posix">posix</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">Revision </td><td class="v">$Revision: 1.51.2.4.2.4 $ </td></tr> </table><br /> <h2><a name="module_session">session</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">Session Support </td><td class="v">enabled </td></tr> <tr><td class="e">Registered save handlers </td><td class="v">files user </td></tr> </table><br /> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">session.auto_start</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">session.bug_compat_42</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">session.bug_compat_warn</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">session.cache_expire</td><td class="v">180</td><td class="v">180</td></tr> <tr><td class="e">session.cache_limiter</td><td class="v">nocache</td><td class="v">nocache</td></tr> <tr><td class="e">session.cookie_domain</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">session.cookie_lifetime</td><td class="v">0</td><td class="v">0</td></tr> <tr><td class="e">session.cookie_path</td><td class="v">/</td><td class="v">/</td></tr> <tr><td class="e">session.cookie_secure</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">session.entropy_file</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">session.entropy_length</td><td class="v">0</td><td class="v">0</td></tr> <tr><td class="e">session.gc_divisor</td><td class="v">100</td><td class="v">100</td></tr> <tr><td class="e">session.gc_maxlifetime</td><td class="v">1440</td><td class="v">1440</td></tr> <tr><td class="e">session.gc_probability</td><td class="v">1</td><td class="v">1</td></tr> <tr><td class="e">session.name</td><td class="v">PHPSESSID</td><td class="v">PHPSESSID</td></tr> <tr><td class="e">session.referer_check</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">session.save_handler</td><td class="v">files</td><td class="v">files</td></tr> <tr><td class="e">session.save_path</td><td class="v">/tmp</td><td class="v">/tmp</td></tr> <tr><td class="e">session.serialize_handler</td><td class="v">php</td><td class="v">php</td></tr> <tr><td class="e">session.use_cookies</td><td class="v">On</td><td class="v">On</td></tr> <tr><td class="e">session.use_only_cookies</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">session.use_trans_sid</td><td class="v">Off</td><td class="v">Off</td></tr> </table><br /> <h2><a name="module_standard">standard</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">Regex Library </td><td class="v">Bundled library enabled </td></tr> <tr><td class="e">Dynamic Library Support </td><td class="v">enabled </td></tr> <tr><td class="e">Path to sendmail </td><td class="v">/usr/sbin/sendmail -t -i </td></tr> </table><br /> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">assert.active</td><td class="v">1</td><td class="v">1</td></tr> <tr><td class="e">assert.bail</td><td class="v">0</td><td class="v">0</td></tr> <tr><td class="e">assert.callback</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> <tr><td class="e">assert.quiet_eval</td><td class="v">0</td><td class="v">0</td></tr> <tr><td class="e">assert.warning</td><td class="v">1</td><td class="v">1</td></tr> <tr><td class="e">auto_detect_line_endings</td><td class="v">0</td><td class="v">0</td></tr> <tr><td class="e">default_socket_timeout</td><td class="v">60</td><td class="v">60</td></tr> <tr><td class="e">safe_mode_allowed_env_vars</td><td class="v">PHP_</td><td class="v">PHP_</td></tr> <tr><td class="e">safe_mode_protected_env_vars</td><td class="v">LD_LIBRARY_PATH</td><td class="v">LD_LIBRARY_PATH</td></tr> <tr><td class="e">url_rewriter.tags</td><td class="v">a=href,area=href,frame=src,form=,fieldset=</td><td class="v">a=href,area=href,frame=src,form=,fieldset=</td></tr> <tr><td class="e">user_agent</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> </table><br /> <h2><a name="module_tokenizer">tokenizer</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">Tokenizer Support </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_xml">xml</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">XML Support </td><td class="v">active </td></tr> <tr><td class="e">XML Namespace Support </td><td class="v">active </td></tr> <tr><td class="e">EXPAT Version </td><td class="v">1.95.6 </td></tr> </table><br /> <h2>Additional Modules</h2> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Module Name</th></tr> </table><br /> <h2>Environment</h2> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Variable</th><th>Value</th></tr> <tr><td class="e">LC_MONETARY </td><td class="v">en_US.ISO8859-1 </td></tr> <tr><td class="e">TERM </td><td class="v">vt100 </td></tr> <tr><td class="e">SHELL </td><td class="v">/bin/bash </td></tr> <tr><td class="e">SSH_CLIENT </td><td class="v">172.18.180.18 4569 22 </td></tr> <tr><td class="e">LC_NUMERIC </td><td class="v">en_US.ISO8859-1 </td></tr> <tr><td class="e">SSH_TTY </td><td class="v">/dev/pts/80 </td></tr> <tr><td class="e">USER </td><td class="v">sadm </td></tr> <tr><td class="e">MAIL </td><td class="v">/var/mail//sadm </td></tr> <tr><td class="e">PATH </td><td class="v">/usr/local/bin:/usr/bin:/usr/sfw/bin:/opt/sfw/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/opt/sfw/bin:/opt/SUNWicg/SunScreen/bin </td></tr> <tr><td class="e">LC_MESSAGES </td><td class="v">C </td></tr> <tr><td class="e">LC_COLLATE </td><td class="v">en_US.ISO8859-1 </td></tr> <tr><td class="e">PWD </td><td class="v">/home/sadm </td></tr> <tr><td class="e">TZ </td><td class="v">Singapore </td></tr> <tr><td class="e">SHLVL </td><td class="v">1 </td></tr> <tr><td class="e">HOME </td><td class="v">/home/sadm </td></tr> <tr><td class="e">LOGNAME </td><td class="v">sadm </td></tr> <tr><td class="e">SSH_CONNECTION </td><td class="v">172.18.180.18 4569 172.25.67.194 22 </td></tr> <tr><td class="e">LC_CTYPE </td><td class="v">en_US.ISO8859-1 </td></tr> <tr><td class="e">_ </td><td class="v">/usr/local/bin/php </td></tr> <tr><td class="e">OLDPWD </td><td class="v">/usr/local/lib </td></tr> </table><br /> <h2>PHP Variables</h2> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Variable</th><th>Value</th></tr> <tr><td class="e">_SERVER["LC_MONETARY"]</td><td class="v">en_US.ISO8859-1</td></tr> <tr><td class="e">_SERVER["TERM"]</td><td class="v">vt100</td></tr> <tr><td class="e">_SERVER["SHELL"]</td><td class="v">/bin/bash</td></tr> <tr><td class="e">_SERVER["SSH_CLIENT"]</td><td class="v">172.18.180.18 4569 22</td></tr> <tr><td class="e">_SERVER["LC_NUMERIC"]</td><td class="v">en_US.ISO8859-1</td></tr> <tr><td class="e">_SERVER["SSH_TTY"]</td><td class="v">/dev/pts/80</td></tr> <tr><td class="e">_SERVER["USER"]</td><td class="v">sadm</td></tr> <tr><td class="e">_SERVER["MAIL"]</td><td class="v">/var/mail//sadm</td></tr> <tr><td class="e">_SERVER["PATH"]</td><td class="v">/usr/local/bin:/usr/bin:/usr/sfw/bin:/opt/sfw/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/opt/sfw/bin:/opt/SUNWicg/SunScreen/bin</td></tr> <tr><td class="e">_SERVER["LC_MESSAGES"]</td><td class="v">C</td></tr> <tr><td class="e">_SERVER["LC_COLLATE"]</td><td class="v">en_US.ISO8859-1</td></tr> <tr><td class="e">_SERVER["PWD"]</td><td class="v">/home/sadm</td></tr> <tr><td class="e">_SERVER["TZ"]</td><td class="v">Singapore</td></tr> <tr><td class="e">_SERVER["SHLVL"]</td><td class="v">1</td></tr> <tr><td class="e">_SERVER["HOME"]</td><td class="v">/home/sadm</td></tr> <tr><td class="e">_SERVER["LOGNAME"]</td><td class="v">sadm</td></tr> <tr><td class="e">_SERVER["SSH_CONNECTION"]</td><td class="v">172.18.180.18 4569 172.25.67.194 22</td></tr> <tr><td class="e">_SERVER["LC_CTYPE"]</td><td class="v">en_US.ISO8859-1</td></tr> <tr><td class="e">_SERVER["_"]</td><td class="v">/usr/local/bin/php</td></tr> <tr><td class="e">_SERVER["OLDPWD"]</td><td class="v">/usr/local/lib</td></tr> <tr><td class="e">_SERVER["PHP_SELF"]</td><td class="v"><i>no value</i></td></tr> <tr><td class="e">_SERVER["argv"]</td><td class="v"><pre>Array (   [0] => test.php ) </pre></td></tr> <tr><td class="e">_SERVER["argc"]</td><td class="v">1</td></tr> <tr><td class="e">_ENV["LC_MONETARY"]</td><td class="v">en_US.ISO8859-1</td></tr> <tr><td class="e">_ENV["TERM"]</td><td class="v">vt100</td></tr> <tr><td class="e">_ENV["SHELL"]</td><td class="v">/bin/bash</td></tr> <tr><td class="e">_ENV["SSH_CLIENT"]</td><td class="v">172.18.180.18 4569 22</td></tr> <tr><td class="e">_ENV["LC_NUMERIC"]</td><td class="v">en_US.ISO8859-1</td></tr> <tr><td class="e">_ENV["SSH_TTY"]</td><td class="v">/dev/pts/80</td></tr> <tr><td class="e">_ENV["USER"]</td><td class="v">sadm</td></tr> <tr><td class="e">_ENV["MAIL"]</td><td class="v">/var/mail//sadm</td></tr> <tr><td class="e">_ENV["PATH"]</td><td class="v">/usr/local/bin:/usr/bin:/usr/sfw/bin:/opt/sfw/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/opt/sfw/bin:/opt/SUNWicg/SunScreen/bin</td></tr> <tr><td class="e">_ENV["LC_MESSAGES"]</td><td class="v">C</td></tr> <tr><td class="e">_ENV["LC_COLLATE"]</td><td class="v">en_US.ISO8859-1</td></tr> <tr><td class="e">_ENV["PWD"]</td><td class="v">/home/sadm</td></tr> <tr><td class="e">_ENV["TZ"]</td><td class="v">Singapore</td></tr> <tr><td class="e">_ENV["SHLVL"]</td><td class="v">1</td></tr> <tr><td class="e">_ENV["HOME"]</td><td class="v">/home/sadm</td></tr> <tr><td class="e">_ENV["LOGNAME"]</td><td class="v">sadm</td></tr> <tr><td class="e">_ENV["SSH_CONNECTION"]</td><td class="v">172.18.180.18 4569 172.25.67.194 22</td></tr> <tr><td class="e">_ENV["LC_CTYPE"]</td><td class="v">en_US.ISO8859-1</td></tr> <tr><td class="e">_ENV["_"]</td><td class="v">/usr/local/bin/php</td></tr> <tr><td class="e">_ENV["OLDPWD"]</td><td class="v">/usr/local/lib</td></tr> </table><br /> <h2>PHP License</h2> <table border="0" cellpadding="3" width="600"> <tr class="v"><td> <p> 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 </p> <p>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. </p> <p>If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net. </p> </td></tr> </table><br /> </div></body></html> Quote Link to comment https://forums.phpfreaks.com/topic/152509-suppress-php-headers/#findComment-801126 Share on other sites More sharing options...
Daniel0 Posted April 4, 2009 Share Posted April 4, 2009 It must be a difference in output between PHP 4 and PHP 5 (you should upgrade, by the way). Either way it should be /usr/local/lib/php.ini. If it doesn't exist then it's because it's using the default values, and you'll have to create a config file yourself. Quote Link to comment https://forums.phpfreaks.com/topic/152509-suppress-php-headers/#findComment-801127 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.