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



parag_paul@xxxxxxxxxxx wrote:
On Apr 5, 12:14 am, Anonymous <anonym...@xxxxxxxxxxxxxxx> wrote:
"parag_p...@xxxxxxxxxxx" 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@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • Re: Installing PHP on MacOS X
    ... I've installed php a few times on OSX Macs, ... php runs under the Apache web server, so you need to have Apache ... part of OSX, but it is switched off by default for security reasons. ... The test.php file referred to in the Entropy installation ...
    (alt.php)
  • Re: Apache2 & php5 Problem
    ... The file contains a test message between header tags and below ... message from the php script line. ... This gives you all the information about your PHP installation. ... You might need to add an AddHandler directive to your Apache config file if there isn't one already and a ScriptAlias ...
    (Debian-User)
  • Re: PHP5 Stability issues?
    ... > even scripts that do anything fancy or special. ... > assigning a string value to a variable, and php5 segfaults. ... libraries and O/s that PHP piggybacks onto. ... Rumour has it that setting up Apache to use mpm modules thus avoiding ...
    (comp.lang.php)
  • Re: Need help configuring php 4.3.10 with Apache 2.0.53
    ... Due to the difficulties with SuSE's setup of Apache, I was unable to get SSL to work with the distro's installation of Apache so uninstalled, reinstalling 2.0.53 from Apache's site. ... I restarted Apache over and over without php working. ...
    (alt.php)
  • Re: Web Server Botnets and Server Farms as Attack Platforms
    ... insecure web application written in PHP, although attacks for other ... The main reason for this is that many different PHP applications are ... and you've found your way to execute shell code on the remote web server. ... those scripts were put in place. ...
    (Bugtraq)