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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.