Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > php issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-02-2006, 09:39 PM
Moderator
 
Join Date: Sep 2006
Posts: 629
Send a message via MSN to harry
Default Why not PHP code is viewed?

Guys, when we use browser View Source functions to view some code, we generally see the html code
and not the php code which we used in our site, why is it so ?
Reply With Quote
  #2 (permalink)  
Old 12-06-2006, 06:52 PM
Moderator
 
Join Date: Sep 2006
Posts: 629
Send a message via MSN to harry
Default

Friends, here is answer, i found it.
You know when we call the page it is first processed on the server and only HTML code is returned so we can’t see php code.
PHP code is interpreted at run time only, people who have access to the webserver can see the PHP code.

You can make your PHP code available for viewing in the browser by setting up the source viewing options enable.
Reply With Quote
  #3 (permalink)  
Old 12-06-2006, 11:01 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

**comment deleted because poster is grumpy old git with toothache who shouldn't take it out on everyone else**
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:53 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum