Jump to content

PHP source can be seen from view source in browser.


Malcerous

Recommended Posts

Hello All:

 

I am running APACHE, PHP and MYSQL on my laptop (VISTA). This is used for a development environment that I can take with me anywhere. My problem is that when I run my (ex: test.php)

 

test.php

------------

<?php

  $welcome="Hello World";

  echo $welcome;

?>

 

 

My browser shows

--------------------

Hello World

 

 

The only problem is if I click on view source (Firefox 2) I will see the following.

---------------------------------------------------------------------------

 

<?php

  $welcome="Hello World";

  echo $welcome;

?>

Hello World

 

 

--------------------------------------------------

I am not sure if this is a PHP or APACHE setting but I am finding it hard to get an answer from a search engine.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.