i am getting the php coding while running the php..

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mekalai82@gmail.com

    #1

    i am getting the php coding while running the php..

    i have information.php file that file contain following coding <?php
    echo phpinfo(); ?>
    while i calling the URL ("http://localhost/information.php ").

    i am getting the coding <?php echo phpinfo(); ?>

    not show the php information.... .. i am new to the php can you help me?
  • rf

    #2
    Re: i am getting the php coding while running the php..


    <mekalai82@gmai l.comwrote in message
    news:ea7db46d-a03d-497a-b38b-c54d75f266f8@h1 1g2000prf.googl egroups.com...
    >i have information.php file that file contain following coding <?php
    echo phpinfo(); ?>
    while i calling the URL ("http://localhost/information.php ").
    >
    i am getting the coding <?php echo phpinfo(); ?>
    <?php phpinfo(); ?>

    --
    Richard


    Comment

    • mekalai82@gmail.com

      #3
      Re: i am getting the php coding while running the php..

      On Feb 29, 11:30 am, "rf" <r...@invalid.c omwrote:
      <mekala...@gmai l.comwrote in message
      >
      news:ea7db46d-a03d-497a-b38b-c54d75f266f8@h1 1g2000prf.googl egroups.com...
      >
      i have information.php file that file contain following coding <?php
      echo phpinfo(); ?>
      while i calling the URL ("http://localhost/information.php ").
      >
      i am getting the coding <?php echo phpinfo(); ?>
      >
      <?php phpinfo(); ?>
      >
      --
      Richard
      for example i have that coding.......my coding is run in the some
      other machine. but while i am trying in my system i am getting the
      whatever i have typed in file.... that content will be
      displaying..... .... does not provide the result of that file
      coding.......

      Comment

      • rf

        #4
        Re: i am getting the php coding while running the php..


        <mekalai82@gmai l.comwrote in message
        news:0bff64a1-fb1b-4042-a8e9-2754c4caabf8@s3 7g2000prg.googl egroups.com...
        On Feb 29, 11:30 am, "rf" <r...@invalid.c omwrote:
        ><mekala...@gma il.comwrote in message
        >>
        >news:ea7db46 d-a03d-497a-b38b-c54d75f266f8@h1 1g2000prf.googl egroups.com...
        >>
        >i have information.php file that file contain following coding <?php
        echo phpinfo(); ?>
        while i calling the URL ("http://localhost/information.php ").
        >>
        i am getting the coding <?php echo phpinfo(); ?>
        >>
        ><?php phpinfo(); ?>
        >>
        >--
        >Richard
        >
        for example i have that coding.......my coding is run in the some
        other machine. but while i am trying in my system i am getting the
        whatever i have typed in file.... that content will be
        displaying..... .... does not provide the result of that file
        coding.......
        Do you have PHP installed and correctly configured on your localhost?

        --
        Richard.


        Comment

        • mekalai82@gmail.com

          #5
          Re: i am getting the php coding while running the php..

          On Feb 29, 11:53 am, "rf" <r...@invalid.c omwrote:
          <mekala...@gmai l.comwrote in message
          >
          news:0bff64a1-fb1b-4042-a8e9-2754c4caabf8@s3 7g2000prg.googl egroups.com...
          >
          >
          >
          On Feb 29, 11:30 am, "rf" <r...@invalid.c omwrote:
          <mekala...@gmai l.comwrote in message
          >
          >news:ea7db46 d-a03d-497a-b38b-c54d75f266f8@h1 1g2000prf.googl egroups.com...
          >
          i have information.php file that file contain following coding <?php
          echo phpinfo(); ?>
          while i calling the URL ("http://localhost/information.php ").
          >
          i am getting the coding <?php echo phpinfo(); ?>
          >
          <?php phpinfo(); ?>
          >
          --
          Richard
          >
          for example i have that coding.......my coding is run in the some
          other machine. but while i am trying in my system i am getting the
          whatever i have typed in file.... that content will be
          displaying..... .... does not provide the result of that file
          coding.......
          >
          Do you have PHP installed and correctly configured on your localhost?
          >
          --
          Richard.
          in mandriva linux i have installed php by rpm packeage....... i have
          installed following package

          php-ini-5.2.4-1mdv2008.0
          php-timezonedb-2007.5-4mdv2008.0
          php-xmlrpc-5.2.4-2mdv2008.0
          php-pear-PEAR_RemoteInst aller-0.3.1-1mdv2008.0
          php-ftp-5.2.4-2mdv2008.0
          php-suhosin-0.9.20-6mdv2008.0
          php-mysql-5.2.4-2mdv2008.0
          libphp5_common5-5.2.4-2mdv2008.0
          php-gettext-5.2.4-2mdv2008.0
          php-openssl-5.2.4-2mdv2008.0
          php-sysvsem-5.2.4-2mdv2008.0
          php-xmlreader-5.2.4-2mdv2008.0
          php-cli-5.2.4-2mdv2008.0
          php-pear-5.2.4-1mdv2008.0
          php-pear-Image_GraphViz-1.2.1-1mdv2008.0
          php-pear-PHPUnit-3.0.6-4mdv2008.0
          php-simplexml-5.2.4-2mdv2008.0
          php-ctype-5.2.4-2mdv2008.0
          php-hash-5.2.4-2mdv2008.0
          php-posix-5.2.4-2mdv2008.0
          php-sysvshm-5.2.4-2mdv2008.0
          php-xmlwriter-5.2.4-2mdv2008.0
          php-gd-bundled-5.2.4-1mdv2008.0
          php-pear-PEAR_Command_Pa ckaging-0.1.2-1mdv2008.0
          php-pear-Testing_Seleniu m-0.3.1-2mdv2008.0
          php-filter-5.2.4-2mdv2008.0
          php-session-5.2.4-2mdv2008.0
          php-zlib-5.2.4-2mdv2008.0
          php-xml-5.2.4-2mdv2008.0
          php-gd-5.2.4-2mdv2008.0
          php-dom-5.2.4-2mdv2008.0
          php-json-5.2.4-2mdv2008.0
          php-tokenizer-5.2.4-2mdv2008.0
          apache-mod_php-5.2.4-2mdv2008.0
          php-pear-MDB2-2.4.1-1mdv2008.0

          this the following command providing (php -v)

          Result of the command

          PHP Warning: Module 'gd' already loaded in Unknown on line 0
          PHP 5.2.4 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 14 2007
          10:11:01)
          Copyright (c) 1997-2007 The PHP Group
          Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
          with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP
          Project

          Comment

          • pakalk

            #6
            Re: i am getting the php coding while running the php..

            On 29 Lut, 08:02, mekala...@gmail .com wrote:
            On Feb 29, 11:53 am, "rf" <r...@invalid.c omwrote:
            >
            >
            >
            <mekala...@gmai l.comwrote in message
            >
            news:0bff64a1-fb1b-4042-a8e9-2754c4caabf8@s3 7g2000prg.googl egroups.com...
            >
            On Feb 29, 11:30 am, "rf" <r...@invalid.c omwrote:
            ><mekala...@gma il.comwrote in message
            >
            >>news:ea7db4 6d-a03d-497a-b38b-c54d75f266f8@h1 1g2000prf.googl egroups.com...
            >
            >i have information.php file that file contain following coding <?php
            echo phpinfo(); ?>
            while i calling the URL ("http://localhost/information.php ").
            >
            i am getting the coding <?php echo phpinfo(); ?>
            >
            ><?php phpinfo(); ?>
            >
            >--
            >Richard
            >
            for example i have that coding.......my coding is run in the some
            other machine. but while i am trying in my system i am getting the
            whatever i have typed in file.... that content will be
            displaying..... .... does not provide the result of that file
            coding.......
            >
            Do you have PHP installed and correctly configured on your localhost?
            >
            --
            Richard.
            >
            in mandriva linux i have installed php by rpm packeage....... i have
            installed following package
            >
            php-ini-5.2.4-1mdv2008.0
            php-timezonedb-2007.5-4mdv2008.0
            php-xmlrpc-5.2.4-2mdv2008.0
            php-pear-PEAR_RemoteInst aller-0.3.1-1mdv2008.0
            php-ftp-5.2.4-2mdv2008.0
            php-suhosin-0.9.20-6mdv2008.0
            php-mysql-5.2.4-2mdv2008.0
            libphp5_common5-5.2.4-2mdv2008.0
            php-gettext-5.2.4-2mdv2008.0
            php-openssl-5.2.4-2mdv2008.0
            php-sysvsem-5.2.4-2mdv2008.0
            php-xmlreader-5.2.4-2mdv2008.0
            php-cli-5.2.4-2mdv2008.0
            php-pear-5.2.4-1mdv2008.0
            php-pear-Image_GraphViz-1.2.1-1mdv2008.0
            php-pear-PHPUnit-3.0.6-4mdv2008.0
            php-simplexml-5.2.4-2mdv2008.0
            php-ctype-5.2.4-2mdv2008.0
            php-hash-5.2.4-2mdv2008.0
            php-posix-5.2.4-2mdv2008.0
            php-sysvshm-5.2.4-2mdv2008.0
            php-xmlwriter-5.2.4-2mdv2008.0
            php-gd-bundled-5.2.4-1mdv2008.0
            php-pear-PEAR_Command_Pa ckaging-0.1.2-1mdv2008.0
            php-pear-Testing_Seleniu m-0.3.1-2mdv2008.0
            php-filter-5.2.4-2mdv2008.0
            php-session-5.2.4-2mdv2008.0
            php-zlib-5.2.4-2mdv2008.0
            php-xml-5.2.4-2mdv2008.0
            php-gd-5.2.4-2mdv2008.0
            php-dom-5.2.4-2mdv2008.0
            php-json-5.2.4-2mdv2008.0
            php-tokenizer-5.2.4-2mdv2008.0
            apache-mod_php-5.2.4-2mdv2008.0
            php-pear-MDB2-2.4.1-1mdv2008.0
            >
            this the following command providing (php -v)
            >
            Result of the command
            >
            PHP Warning: Module 'gd' already loaded in Unknown on line 0
            PHP 5.2.4 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 14 2007
            10:11:01)
            Copyright (c) 1997-2007 The PHP Group
            Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
            with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP
            Project
            But did you configure your HTTP server to parse .php files?

            Comment

            • Jerry Stuckle

              #7
              Re: i am getting the php coding while running the php..

              mekalai82@gmail .com wrote:
              On Feb 29, 11:53 am, "rf" <r...@invalid.c omwrote:
              ><mekala...@gma il.comwrote in message
              >>
              >news:0bff64a 1-fb1b-4042-a8e9-2754c4caabf8@s3 7g2000prg.googl egroups.com...
              >>
              >>
              >>
              >>On Feb 29, 11:30 am, "rf" <r...@invalid.c omwrote:
              >>><mekala...@g mail.comwrote in message
              >>>news:ea7db46 d-a03d-497a-b38b-c54d75f266f8@h1 1g2000prf.googl egroups.com...
              >>>>i have information.php file that file contain following coding <?php
              >>>>echo phpinfo(); ?>
              >>>>while i calling the URL ("http://localhost/information.php ").
              >>>>i am getting the coding <?php echo phpinfo(); ?>
              >>><?php phpinfo(); ?>
              >>>--
              >>>Richard
              >>for example i have that coding.......my coding is run in the some
              >>other machine. but while i am trying in my system i am getting the
              >>whatever i have typed in file.... that content will be
              >>displaying... ...... does not provide the result of that file
              >>coding..... ..
              >Do you have PHP installed and correctly configured on your localhost?
              >>
              >--
              >Richard.
              >
              in mandriva linux i have installed php by rpm packeage....... i have
              installed following package
              >
              php-ini-5.2.4-1mdv2008.0
              php-timezonedb-2007.5-4mdv2008.0
              php-xmlrpc-5.2.4-2mdv2008.0
              php-pear-PEAR_RemoteInst aller-0.3.1-1mdv2008.0
              php-ftp-5.2.4-2mdv2008.0
              php-suhosin-0.9.20-6mdv2008.0
              php-mysql-5.2.4-2mdv2008.0
              libphp5_common5-5.2.4-2mdv2008.0
              php-gettext-5.2.4-2mdv2008.0
              php-openssl-5.2.4-2mdv2008.0
              php-sysvsem-5.2.4-2mdv2008.0
              php-xmlreader-5.2.4-2mdv2008.0
              php-cli-5.2.4-2mdv2008.0
              php-pear-5.2.4-1mdv2008.0
              php-pear-Image_GraphViz-1.2.1-1mdv2008.0
              php-pear-PHPUnit-3.0.6-4mdv2008.0
              php-simplexml-5.2.4-2mdv2008.0
              php-ctype-5.2.4-2mdv2008.0
              php-hash-5.2.4-2mdv2008.0
              php-posix-5.2.4-2mdv2008.0
              php-sysvshm-5.2.4-2mdv2008.0
              php-xmlwriter-5.2.4-2mdv2008.0
              php-gd-bundled-5.2.4-1mdv2008.0
              php-pear-PEAR_Command_Pa ckaging-0.1.2-1mdv2008.0
              php-pear-Testing_Seleniu m-0.3.1-2mdv2008.0
              php-filter-5.2.4-2mdv2008.0
              php-session-5.2.4-2mdv2008.0
              php-zlib-5.2.4-2mdv2008.0
              php-xml-5.2.4-2mdv2008.0
              php-gd-5.2.4-2mdv2008.0
              php-dom-5.2.4-2mdv2008.0
              php-json-5.2.4-2mdv2008.0
              php-tokenizer-5.2.4-2mdv2008.0
              apache-mod_php-5.2.4-2mdv2008.0
              php-pear-MDB2-2.4.1-1mdv2008.0
              >
              this the following command providing (php -v)
              >
              Result of the command
              >
              PHP Warning: Module 'gd' already loaded in Unknown on line 0
              PHP 5.2.4 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 14 2007
              10:11:01)
              Copyright (c) 1997-2007 The PHP Group
              Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
              with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP
              Project
              >
              Which doesn't answer the question as to whether you have PHP installed
              and correctly configured on your localhost.

              You do have a webserver installed and are attempting to access the file
              through your webserver, aren't you?

              --
              =============== ===
              Remove the "x" from my email address
              Jerry Stuckle
              JDS Computer Training Corp.
              jstucklex@attgl obal.net
              =============== ===

              Comment

              • Captain Paralytic

                #8
                Re: i am getting the php coding while running the php..

                On 29 Feb, 11:06, Jerry Stuckle <jstuck...@attg lobal.netwrote:
                You do have a webserver installed and are attempting to access the file
                through your webserver, aren't you?
                Well he does say "while i calling the URL ("http://localhost/
                information.php ")." in the first post.

                Comment

                • Toby A Inkster

                  #9
                  Re: i am getting the php coding while running the php..

                  mekalai82 wrote:
                  apache-mod_php-5.2.4-2mdv2008.0
                  Did you reload Apache after installing PHP (command line: "service httpd
                  reload")? (If you've restarted the computer, that would have had the same
                  effect.)

                  --
                  Toby A Inkster BSc (Hons) ARCS
                  [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
                  [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 30 days, 17:44.]

                  Bottled Water

                  Comment

                  • Mason Barge

                    #10
                    Re: i am getting the php coding while running the php..


                    <mekalai82@gmai l.comwrote in message
                    news:ea7db46d-a03d-497a-b38b-c54d75f266f8@h1 1g2000prf.googl egroups.com...
                    >i have information.php file that file contain following coding <?php
                    echo phpinfo(); ?>
                    while i calling the URL ("http://localhost/information.php ").
                    >
                    i am getting the coding <?php echo phpinfo(); ?>
                    >
                    not show the php information.... .. i am new to the php can you help me?
                    I may be missing something, but why don't you just take out the echo and see
                    what happens?

                    Comment

                    Working...