I am not able to see the executed output at all

hi All,
I am new to php and the using mozila firefox 3 , and IE 6 . But none
of them are able to show the output for the following p1.php file .

<html>
<head>
<title> PHP Test </title>
</head>
<?php phpinfo(); ?>
</html>


But the output of the program is the whole file as text?
What is going wrong here?
-Parag
parag_paul [ Fr, 04 April 2008 20:15 ] [ ID #1935699 ]

Re: I am not able to see the executed output at all

Add an underscore after the p to reply
<parag_paul [at] hotmail.com> wrote in message
news:09eba5b2-553f-48db-aaf7-b266bd9aa0ff [at] r9g2000prd.googleg roups.com...
> hi All,
> I am new to php and the using mozila firefox 3 , and IE 6 . But none
> of them are able to show the output for the following p1.php file .
>
> <html>
> <head>
> <title> PHP Test </title>
> </head>
> <?php phpinfo(); ?>
> </html>
>
>
> But the output of the program is the whole file as text?
> What is going wrong here?
> -Parag


Your code produces this and the rest on my server. It goes on for some time
so I've trimmed the rest.

Paul





PHP Version 5.2.5

System Linux atkins.uk-noc.com 2.6.23.14 #2 SMP Thu Feb 14 00:29:49
GMT 2008 i686
Build Date Jan 7 2008 22:25:15
Configure Command './configure' '--enable-bcmath' '--enable-calendar'
'--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml'
'--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared'
'--enable-soap' '--enable-sockets' '--enable-zip' '--prefix=/usr/local'
'--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/'
'--with-freetype-dir=/usr' '--with-gd' '--with-gettext'
'--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr'
'--with-jpeg-dir=/usr' '--with-kerberos' '--with-libexpat-dir=/usr'
'--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/'
'--with-mhash=/opt/mhash/' '--with-mysql=/usr'
'--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr'
'--with-openssl-dir=/usr' '--with-pdo-mysql=shared'
'--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-pspell'
'--with-sqlite=shared' '--with-ttf' '--with-xmlrpc'
'--with-xpm-dir=/usr/X11R6' '--with-xsl=/opt/xslt/' '--with-zlib'
'--with-zlib-dir=/usr'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib
paulb [ Fr, 04 April 2008 20:19 ] [ ID #1935700 ]

Re: I am not able to see the executed output at all

On 4/4/2008 2:15 PM, parag_paul [at] hotmail.com wrote:
> hi All,
> I am new to php and the using mozila firefox 3 , and IE 6 . But none
> of them are able to show the output for the following p1.php file .
>
> <html>
> <head>
> <title> PHP Test </title>
> </head>
> <?php phpinfo(); ?>
> </html>
>
>
> But the output of the program is the whole file as text?
> What is going wrong here?
> -Parag
Sounds like you are naming your file something.html instead of
something.php.
Dave Pyles
Dave Pyles [ Fr, 04 April 2008 20:23 ] [ ID #1935701 ]

Re: I am not able to see the executed output at all

"parag_paul [at] hotmail.com" wrote:
>
> hi All,
> I am new to php and the using mozila firefox 3 , and IE 6 . But none
> of them are able to show the output for the following p1.php file .
>
> <html>
> <head>
> <title> PHP Test </title>
> </head>
> <?php phpinfo(); ?>
> </html>
>
> But the output of the program is the whole file as text?
> What is going wrong here?

You are aware that PHP is a server side scripting language and that you
need a webserver like Apache to execute scripts on?

Opening PHP scripts in a webbrowser doesn't do the trick.

Bye!
Anonymous [ Fr, 04 April 2008 21:14 ] [ ID #1935704 ]

Re: I am not able to see the executed output at all

On Apr 5, 12:14=A0am, Anonymous <anonym... [at] nowhere.invalid> wrote:
> "parag_p... [at] hotmail.com" wrote:
>
> > =A0hi All,
> > I =A0am new to php and the using mozila firefox 3 , and IE 6 . But none
> > of them are able to show the output for the following p1.php file .
>
> > <html>
> > <head>
> > <title> PHP Test </title>
> > </head>
> > <?php phpinfo(); =A0?>
> > </html>
>
> > But the output of the program is the whole file as text?
> > What is going wrong here?
>
> You are aware that PHP is a server side scripting language and that you
> need a webserver like Apache to execute scripts on?
>
> Opening PHP scripts in a webbrowser doesn't do the trick.
>
> Bye!

I have installed apache on the linux machine on which the I am writing
this script and saving in the document root.
I guess, the apache installation will have to be done for php ???
parag_paul [ Sa, 05 April 2008 19:40 ] [ ID #1936245 ]

Re: I am not able to see the executed output at all

parag_paul [at] hotmail.com wrote:
> On Apr 5, 12:14 am, Anonymous <anonym... [at] nowhere.invalid> wrote:
>> "parag_p... [at] hotmail.com" wrote:
>>
>>> hi All,
>>> I am new to php and the using mozila firefox 3 , and IE 6 . But none
>>> of them are able to show the output for the following p1.php file .
>>> <html>
>>> <head>
>>> <title> PHP Test </title>
>>> </head>
>>> <?php phpinfo(); ?>
>>> </html>
>>> But the output of the program is the whole file as text?
>>> What is going wrong here?
>> You are aware that PHP is a server side scripting language and that you
>> need a webserver like Apache to execute scripts on?
>>
>> Opening PHP scripts in a webbrowser doesn't do the trick.
>>
>> Bye!
>
> I have installed apache on the linux machine on which the I am writing
> this script and saving in the document root.
> I guess, the apache installation will have to be done for php ???
>

Yes, you also have to install PHP - Apache has no idea how to parse PHP
files.

I'd recommend you just install LAMP - Apache, MySQL and PHP on Linux.
If you're not familiar with installing software on Linux and configuring
Apache, it's much easier.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex [at] attglobal.net
==================
Jerry Stuckle [ Sa, 05 April 2008 21:18 ] [ ID #1936248 ]

Re: I am not able to see the executed output at all

On Sat, 05 Apr 2008 14:18:01 -0500, Jerry Stuckle <jstucklex [at] attglobal.net>
wrote:

>> I have installed apache on the linux machine on which the I am writing
>> this script and saving in the document root.
>> I guess, the apache installation will have to be done for php ???
>>
>
>Yes, you also have to install PHP - Apache has no idea how to parse PHP
>files.
>
>I'd recommend you just install LAMP - Apache, MySQL and PHP on Linux.
>If you're not familiar with installing software on Linux and configuring
>Apache, it's much easier.

Well, for example on fedora, if you already have Apache you can just 'yum
install php' to have php installed ready and configured for apache :) I
suspect that this is the case with most distributions...

--
***/--- Sir Robin (aka Jani Saksa) Bi-Sex and proud of it! ---\***
**/ email: robsku [at] fiveam.NO-SPAM.org, <*> Reg. Linux user #290577 \**
*| Me, Drugs, DooM, Photos, Writings... http://soul.fiveam.org/robsku |*
**\--- GSM/SMS: +358 44 927 3992 ---/**
"I like the trees, you know? I like the way that the trees are on mountains,
all the different... the way the trees are."
Sir Robin [ Mi, 09 April 2008 07:31 ] [ ID #1940576 ]
PHP » comp.lang.php » I am not able to see the executed output at all

Vorheriges Thema: Using Oracle 11g with PHP 5 (or 6)
Nächstes Thema: Memory usage of foreach