WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How can I display my < ?php phpinfo();?> (9 posts)

  1. Blog4Life
    Member
    Posted 8 years ago #

    I want to have a link on my blog site somewhere so I can click it to see the info whenever I want but haven't figured out how yet.

    I have the php file sitting on the server but pulling it up in a browser just displays the < ?php phpinfo();?> code (I'm seperating the < ? on purpose of course).

    It runs fine if I add it to the index.php or something but obviously I don't want to do that, I want it on a separate page. I tried adding a new WP Page and included the code also but it just displays the code, it doesn't get ran.

    What easy step am I missing? TIA.

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    You want to display the actual info that a phpinfo generates ?

    If when you look at the actual page you do see
    <?php phpinfo(); ?>
    then it's been uploaded wrongly. Be sure to upload in ASCII mode.

  3. Blog4Life
    Member
    Posted 8 years ago #

    Yes, I want to be able to see the info it generates. Just to be clear, I see it fine if I put in index.php but I want a link to it.

    So, do I put it in a .php file, an html file (coded only as shown, or as a link) or some other way?

    I think you are saying plain text, but into a php and then upload that to the server and then try to open it via the browser? Because that's what I did and it just displays the code, so I guess you mean something else which is why I came to the source lol.

  4. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Ah...browsers are a Bad Thing when it comes to uploading a lot of things. You need a proper FTP program and it'll work fine. Filezilla is free (like WP) and very good:
    http://filezilla.sourceforge.net/

  5. Blog4Life
    Member
    Posted 8 years ago #

    Yeap, I use Filezilla too.

    Please see second sentence, first comment.

    I have it on the server as a php file now: http://billy-girlardo.com/PHP_Info.php

    Now what?

    Off to school.

    Oh yeah, I have RWX for Owner (me).

  6. Blog4Life
    Member
    Posted 8 years ago #

    It looks like I may have forgot to delete that space up front after the first <

    I'll check when I get back home.

  7. Blog4Life
    Member
    Posted 8 years ago #

    Thx Viper, looks like I left a space in by accident.

    I appreciate ya'lls help.

  8. Blog4Life
    Member
    Posted 8 years ago #

    stupid school network, bump

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags