Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 10-18-2009, 12:44 AM   #1
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: Jun 2008
Location: Warrior Forum
Posts: 739
Thanks: 35
Thanked 46 Times in 27 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to howudoin
Arrow Is It Possible To See PHP Files Through A Web Browser?

Just wondering, If a site is running using several PHP files, then is it possible to see individual files through a web browser (Using Port 80).

Do I need to install any file for this on my web server or something?

Thanks in advance.

howudoin is offline   Reply With Quote
Old 10-18-2009, 06:34 AM   #2
and Michael Jed
War Room Member
 
ValentinJed's Avatar
 
Join Date: May 2009
Posts: 187
Thanks: 38
Thanked 29 Times in 23 Posts
Contact Info
Send a message via Skype™ to ValentinJed
Default Re: Is It Possible To See PHP Files Through A Web Browser?

Your browser can't see the source code of PHP files as the web server returns already compiled output from the execution of the script.
ValentinJed is offline   Reply With Quote
Old 10-18-2009, 08:07 AM   #3
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: Jun 2008
Location: Warrior Forum
Posts: 739
Thanks: 35
Thanked 46 Times in 27 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to howudoin
Default Re: Is It Possible To See PHP Files Through A Web Browser?

I got it valentin, Simply view the source file of a webpage and you can get an idea about the backend php coding

Thanks any way!

howudoin is offline   Reply With Quote
Old 10-18-2009, 08:37 AM   #4
Senior Warrior Member
War Room Member
 
KirkMcD's Avatar
 
Join Date: Apr 2006
Location: , , USA.
Posts: 2,433
Thanks: 40
Thanked 155 Times in 148 Posts
Default Re: Is It Possible To See PHP Files Through A Web Browser?

Quote:
Originally Posted by howudoin View Post
Simply view the source file of a webpage and you can get an idea about the backend php coding
No, you can't. You'll learn nothing about the PHP used to build the page by viewing the html source code of the generated page.

KirkMcD is offline   Reply With Quote
Old 10-18-2009, 09:01 AM   #5
Advanced Warrior
War Room Member
 
TristanPerry's Avatar
 
Join Date: Aug 2009
Location: Cardiff, United Kingdom
Posts: 772
Thanks: 171
Thanked 147 Times in 103 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Is It Possible To See PHP Files Through A Web Browser?

As above, you can't see *any* of the PHP code. Full stop. Hence it's name:

PHP: Hypertext Preprocessor

PHP takes place before anything is sent to the client - i.e. it's a server side language.

When you "View Source", you are seeing the HTML - which is the client-side code that makes up a web-page.

"If you are clear where you are going and you take several steps in that direction every day, you eventually have to get there."
TristanPerry is offline   Reply With Quote
Old 10-18-2009, 10:22 AM   #6
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: Jun 2008
Location: Warrior Forum
Posts: 739
Thanks: 35
Thanked 46 Times in 27 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to howudoin
Default Re: Is It Possible To See PHP Files Through A Web Browser?

Quote:
No, you can't. You'll learn nothing about the PHP used to build the page by viewing the html source code of the generated page.
Quote:
As above, you can't see *any* of the PHP code. Full stop. Hence it's name:

PHP: Hypertext Preprocessor

PHP takes place before anything is sent to the client - i.e. it's a server side language.

When you "View Source", you are seeing the HTML - which is the client-side code that makes up a web-page.
I just had to figure out the encrypted code in a free footer PHP file of a free wordpress blog, so simply looking at the source html worked fine, for getting rid of the *backlinks*

howudoin is offline   Reply With Quote
Old 10-18-2009, 10:37 AM   #7
Active Warrior
 
Join Date: Jul 2009
Posts: 75
Thanks: 1
Thanked 4 Times in 4 Posts
Default Re: Is It Possible To See PHP Files Through A Web Browser?

Yup, it's one of the advantages of Php. It's server source language.

bbenson19 is offline   Reply With Quote
Old 10-18-2009, 03:07 PM   #8
Wordpress Guru
War Room Member
 
g705's Avatar
 
Join Date: Oct 2009
Posts: 19
Thanks: 2
Thanked 1 Time in 1 Post
Default Re: Is It Possible To See PHP Files Through A Web Browser?

Yes there is no way unless u can download the file with its source
g705 is offline   Reply With Quote
Old 10-21-2009, 03:46 PM   #9
Warrior Member
 
Join Date: Oct 2009
Location: Cornwall
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Contact Info
Send a message via Skype™ to TamarBoy
Default Re: Is It Possible To See PHP Files Through A Web Browser?

The only way it can be done is for the PHP server to be de-registered with the server and if that where to happen, all hell would let loose. so it doesnt happen very often.

James Jenkins - Tamar Solutions

Last edited by TamarBoy; 10-21-2009 at 03:46 PM. Reason: spelling mistake
TamarBoy is offline   Reply With Quote
Old 10-25-2009, 12:49 PM   #10
Peace +
War Room Member
 
Voon's Avatar
 
Join Date: Oct 2009
Location: The World Is Flat
Posts: 34
Thanks: 1
Thanked 3 Times in 3 Posts
Default Just sharing my experience ...

Well, there is some time when my .htaccess is messed up (during apache upgrade) and my PHP file is no longer execute as PHP but plain text. Then my PHP source is leaked out. =/

This is a rare, but it's safe most of the time. =)
Voon is offline   Reply With Quote
Old 10-25-2009, 11:12 PM   #11
TheRichJerksNet
Guest
 
Posts: n/a
Default Re: Is It Possible To See PHP Files Through A Web Browser?

Quote:
Originally Posted by howudoin View Post
I just had to figure out the encrypted code in a free footer PHP file of a free wordpress blog, so simply looking at the source html worked fine, for getting rid of the *backlinks*
So you got a free theme that you did not pay for and you decide that you do not want to give credit where credit is due and remove the link....

Is that about right ?

James
  Reply With Quote
Old 01-08-2010, 12:34 AM   #12
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: Jun 2008
Location: Warrior Forum
Posts: 739
Thanks: 35
Thanked 46 Times in 27 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to howudoin
Default Re: Is It Possible To See PHP Files Through A Web Browser?

Quote:
So you got a free theme that you did not pay for and you decide that you do not want to give credit where credit is due and remove the link....

Is that about right ?

James
I'm free to remove the "backlinks" since the same is stated in Terms of Usage of the theme.

Bhupinder

howudoin is offline   Reply With Quote
Old 01-08-2010, 06:13 AM   #13
PHP MySQL Developer
War Room Member
 
phptechie's Avatar
 
Join Date: Nov 2009
Posts: 50
Thanks: 0
Thanked 4 Times in 4 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via AIM to phptechie Send a message via MSN to phptechie Send a message via Yahoo to phptechie Send a message via Skype™ to phptechie
Default Re: Is It Possible To See PHP Files Through A Web Browser?

As said by others PHP is a server side scripting , it just sends out the HTML response to your browser. So View Page Source will just give you the display part of it (HTML content) & not the application / business logic.

But if you host the php source files in a server where PHP is not installed or integrated , then the files that you access via browser will just simply display the full code without parsing & you can visually all the php code with html content.

If you purposely like to allow viewing the source code by your site visitors , then you can place the source code with ".phps" extension & when its viewed in the browser , it displays the code.

Hope this helps :-)

phptechie is offline   Reply With Quote
Old 01-08-2010, 11:48 PM   #14
Active Warrior
War Room Member
 
farasens1's Avatar
 
Join Date: Dec 2009
Location: Europe
Posts: 59
Thanks: 0
Thanked 3 Times in 3 Posts
Default Re: Is It Possible To See PHP Files Through A Web Browser?

No. It is not possible to see PHP files within the brower. You'll see the HTML created by the browser, but nothing more.

$2.25 make money online ebook
  • make money with adsense ebook
  • how to change your mindset ebook/1000 hot niches
farasens1 is offline   Reply With Quote
Old 01-08-2010, 11:59 PM   #15
Senior Warrior Member
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1
Thanks: 759
Thanked 724 Times in 505 Posts
Default Re: Is It Possible To See PHP Files Through A Web Browser?

Quote:
Originally Posted by howudoin View Post
I'm free to remove the "backlinks" since the same is stated in Terms of Usage of the theme.

Bhupinder
Its curious that the theme would have an encrypted footer if your Terms or Usage says you are free to remove them What would be the purpose of encrypting them in the first place?

Not accusing you of anything but I'm confused - as a developer I'd only bother to encrypt something that I didn't want modified.

Bill
mywebwork is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
browser, files, php, web

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 11:08 AM.