SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with PHP -i output

    If I type PHP -i in the command line I am getting HTML output also.

    <tr><td class="e">_ENV["INPUTRC"]</td><td class="v">/etc/inputrc</td></tr>
    <tr><td class="e">_ENV["PWD"]</td><td class="v">/root</td></tr>

    Above is an example of some of the output. I do not directly handle this server, but any ideas on how to fix that would be great. I suggested to attempt to recompile apache+PHP.

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What's your problem?

    PHP outputs HTML - that's it's job.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, well I was just seeing because on every other server I use the output of PHP -i doesn't include the html code. I am quite aware PHP outputs HTML, but I thought during PHP -i it shouldn't output the HTML.

    For example one of the other servers I use outputs PHP -i cleanly like this

    zlib

    ZLib Support => enabled
    Compiled Version => 1.2.1.2
    Linked Version => 1.2.1.2

    Directive => Local Value => Master Value
    zlib.output_compression => Off => Off
    zlib.output_compression_level => -1 => -1
    zlib.output_handler => no value => no value

    I just thought it might be a problem.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •