473,624 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?
Feb 29 '08 #1
9 2031
rf

<me*******@gmai l.comwrote in message
news:ea******** *************** ***********@h11 g2000prf.google groups.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
Feb 29 '08 #2
On Feb 29, 11:30 am, "rf" <r...@invalid.c omwrote:
<mekala...@gmai l.comwrote in message

news:ea******** *************** ***********@h11 g2000prf.google groups.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.......
Feb 29 '08 #3
rf

<me*******@gmai l.comwrote in message
news:0b******** *************** ***********@s37 g2000prg.google groups.com...
On Feb 29, 11:30 am, "rf" <r...@invalid.c omwrote:
><mekala...@gma il.comwrote in message

news:ea******* *************** ************@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.
Feb 29 '08 #4
On Feb 29, 11:53 am, "rf" <r...@invalid.c omwrote:
<mekala...@gmai l.comwrote in message

news:0b******** *************** ***********@s37 g2000prg.google groups.com...
On Feb 29, 11:30 am, "rf" <r...@invalid.c omwrote:
<mekala...@gmai l.comwrote in message
>news:ea******* *************** ************@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
Feb 29 '08 #5
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:0b******** *************** ***********@s37 g2000prg.google groups.com...
On Feb 29, 11:30 am, "rf" <r...@invalid.c omwrote:
><mekala...@gma il.comwrote in message
>>news:ea****** *************** *************@h 11g2000prf.goog legroups.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?
Feb 29 '08 #6
me*******@gmail .com wrote:
On Feb 29, 11:53 am, "rf" <r...@invalid.c omwrote:
><mekala...@gma il.comwrote in message

news:0b******* *************** ************@s3 7g2000prg.googl egroups.com...
>>On Feb 29, 11:30 am, "rf" <r...@invalid.c omwrote:
<mekala...@g mail.comwrote in message
news:ea***** *************** **************@ h11g2000prf.goo glegroups.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.
js*******@attgl obal.net
=============== ===

Feb 29 '08 #7
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.
Feb 29 '08 #8
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
http://tobyinkster.co.uk/blog/2008/02/18/bottled-water/
Feb 29 '08 #9

<me*******@gmai l.comwrote in message
news:ea******** *************** ***********@h11 g2000prf.google groups.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?

Mar 1 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2579
by: James | last post by:
Please help - getting very desperate! Sun, 12 October 2003 05:39 I have PHPDEV 4.2.3 from Firepages.com.au as the upgrade to 4.3.0 did not work. I also had an abortive download from PHP.NET as I could not configure Apache myself. The REAL problem is that PHPmyAdmin works and sees my test database Wines.... But my PHP program does not!
7
1956
by: Jeffery Tyree | last post by:
I am writing an application in C#.NET that is "AlwaysOnTop" and there should only be one instance of this program running at any given time. The "AlwaysOnTop" piece is working just fine but I need to know how to prevent multiple instances of this program from running. I've been away from coding for quite a while... Back in the old day with k&r C writing a Win3.x application, I seem to remember being able to simply state somewhere whether...
2
8929
by: Curtiosity | last post by:
I have done a create or replace view called creditcard1. If I do a "select * from creditcard1" it retrieves the data just fine. If I try to do a statement where I am listing the column names it doesn't recognize them. create or replace view creditcard1 as select pidm ,tbraccd_term_code as "Term" ,tbraccd_detail_code as "Detail_Code" ,tbbdetc_desc as "Detc_Desc" ,tbraccd_tran_number as "Tran_Number" ,DECODE(tbbdetc_type_ind,...
33
11838
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon (NT_AUTHORITY\SYSTEM). I understand that when the service starts, no user may be logged in, but that's ok, as the app I am monitoring can only be run by a logged in user. Do I need to use WMI to get the user context of Explorer.exe or is there a...
0
8172
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8620
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7158
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.