Freelancer.com

Go Back   Warrior Forum - The #1 Internet Marketing Forum & Marketplace > Warrior Support Forums > Programming
Register Blogs Social Groups CalendarHelp Desk

Reply
LinkBack Thread Tools
Unread 17th October 2009, 11:44 PM   #1
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: 2008
Location: Warrior Forum
Posts: 805
Thanks: 40
Thanked 65 Times in 36 Posts
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
Unread 18th October 2009, 05:34 AM   #2
HyperActive Warrior
War Room Member
 
ValentinJed's Avatar
 
Join Date: 2009
Posts: 188
Thanks: 84
Thanked 70 Times in 50 Posts
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
Unread 18th October 2009, 07:07 AM   #3
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: 2008
Location: Warrior Forum
Posts: 805
Thanks: 40
Thanked 65 Times in 36 Posts
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
Unread 18th October 2009, 07:37 AM   #4
Senior Warrior Member
War Room Member
 
Join Date: 2006
Location: , , USA.
Posts: 2,948
Thanks: 56
Thanked 244 Times in 226 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 online now   Reply With Quote
Unread 18th October 2009, 08:01 AM   #5
Advanced Warrior
War Room Member
 
TristanPerry's Avatar
 
Join Date: 2009
Location: Cardiff, United Kingdom
Posts: 757
Thanks: 169
Thanked 148 Times in 103 Posts
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
Unread 18th October 2009, 09:22 AM   #6
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: 2008
Location: Warrior Forum
Posts: 805
Thanks: 40
Thanked 65 Times in 36 Posts
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
Unread 18th October 2009, 09:37 AM   #7
Active Warrior
 
Join Date: 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
Unread 18th October 2009, 02:07 PM   #8
Wordpress Specialist
War Room Member
 
g705's Avatar
 
Join Date: 2009
Posts: 91
Thanks: 2
Thanked 10 Times in 10 Posts
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
Unread 21st October 2009, 02:46 PM   #9
Warrior Member
 
Join Date: 2009
Location: Cornwall
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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; 21st October 2009 at 02:46 PM. Reason: spelling mistake
TamarBoy is offline   Reply With Quote
Unread 25th October 2009, 11:49 AM   #10
From IT to IM
War Room Member
 
Voon's Avatar
 
Join Date: 2009
Location: The World Is Flat
Posts: 37
Thanks: 23
Thanked 5 Times in 5 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
Unread 25th October 2009, 10: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
Unread 8th January 2010, 12:34 AM   #12
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: 2008
Location: Warrior Forum
Posts: 805
Thanks: 40
Thanked 65 Times in 36 Posts
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
Unread 8th January 2010, 06:13 AM   #13
PHP/MySQL/WP Freelancer
War Room Member
 
phptechie's Avatar
 
Join Date: 2009
Location: Online
Posts: 77
Thanks: 0
Thanked 6 Times in 5 Posts
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
Unread 8th January 2010, 11:48 PM   #14
Active Warrior
War Room Member
 
farasens1's Avatar
 
Join Date: 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
Unread 8th January 2010, 11:59 PM   #15
Senior Warrior Member
War Room Member
 
ereadergold's Avatar
 
Join Date: 2008
Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,427
Blog Entries: 1
Thanks: 1,066
Thanked 871 Times in 597 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
ereadergold is offline   Reply With Quote
Reply

  Warrior Forum - The #1 Internet Marketing Forum & Marketplace > Warrior Support Forums > Programming

Bookmarks

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 03:37 PM.