Old 27-02-2008, 13:58   #1 (permalink)
millie_v
Registered User
 
Join Date: Feb 2008
Posts: 3
php - view source?

Is there any way to view the php source of an html page? That is, is there anyway to request that the server send the page without processing? There are some people out there doing some interesting work with wordpress and other php based cms but it's hard to understand what they are actually doing when all you can see is the html.
  Reply With Quote
Old 27-02-2008, 14:13   #2 (permalink)
mike_m
Work faster microphone ..
 
mike_m's Avatar
 
Join Date: Feb 2003
Location: Cambridge, UK
Posts: 1,709
not possible.
__________________
  Reply With Quote
Old 27-02-2008, 14:25   #3 (permalink)
millie_v
Registered User
 
Join Date: Feb 2008
Posts: 3
Really? Not possible? That's such a bummer. After a little reading it looks like a lot of people use php for coding security. However, I think that one of the beautiful things about html is that anyone can view the source and see exactly what's going. It's a real unifying principle, it's also how I (and I bet a lot of other people) started to learn web stuff. I think development happens in a more exciting way when everyone has access to everything, not just programmers. Granted programmers are going to be the driving force behind innovation, but I also think it takes people with absolutely no code experience to put two pieces of code together in an unexpected way. That's where the real internet magic happens.

Last edited by millie_v : 27-02-2008 at 15:28.
  Reply With Quote
Old 27-02-2008, 14:30   #4 (permalink)
Blackbox
Registered User
 
Blackbox's Avatar
 
Join Date: Feb 2008
Posts: 17
It's server side, HTML is client side.
  Reply With Quote
Old 27-02-2008, 14:31   #5 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,106
If you're looking to view the source of PHP for learning purposes, go here instead: PHP 101: PHP For the Absolute Beginner
__________________
  Reply With Quote
Old 27-02-2008, 15:38   #6 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
Quote:
Originally Posted by millie_v
Is there any way to view the php source of an html page? That is, is there anyway to request that the server send the page without processing?


That would make for good security...
  Reply With Quote
Old 27-02-2008, 15:43   #7 (permalink)
millie_v
Registered User
 
Join Date: Feb 2008
Posts: 3
No. It would make for good development.
  Reply With Quote
Old 27-02-2008, 15:46   #8 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
How in the fuck would that make for good development???? It would make it easy for clowns like you to steal source code... that's about it. You are obviously confused..


By the way... wordpress is open source, so you can go download the source right from the website instead of trying to view the inter-workings through a browser.
  Reply With Quote
Old 27-02-2008, 15:58   #9 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,106
Quote:
Originally Posted by herkalees
If you're looking to view the source of PHP for learning purposes, go here instead: PHP 101: PHP For the Absolute Beginner
.
__________________
  Reply With Quote
Old 27-02-2008, 16:32   #10 (permalink)
iblastoff
gotsa a malanga!
 
iblastoff's Avatar
 
Join Date: Apr 2006
Location: ottawa, canada
Posts: 489
you are obviously confused by what php is. there are an unlimited amount of php applications you can simply download and view their inner workings to your hearts content. what is actually stopping you from doing this i have no idea.
__________________
  Reply With Quote
Old 27-02-2008, 16:50   #11 (permalink)
pgo
misanthrope
 
pgo's Avatar
 
Join Date: Jan 2005
Posts: 12,273
Quote:
Originally Posted by millie_v
No. It would make for good development.
No, it would make every PHP based site on the internet completely insecure and render all security measures pointless.
__________________
  Reply With Quote
Old 27-02-2008, 17:33   #12 (permalink)
bluesage
Senior Member
 
Join Date: Dec 2006
Location: Switzerland
Posts: 352
as mentioned, you can easily download open source php applications, scripts and classes on the internet and study them.

you could also print out certain data using var-dump
__________________
www.benshu.ch // Evolving with Style

  Reply With Quote
Old 28-02-2008, 04:13   #13 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,365
Quote:
Originally Posted by pgo
No, it would make every PHP based site on the internet completely insecure and render all security measures pointless.

Was that the security through obscurity argument being raised?
__________________
Random goodness at The Blog

  Reply With Quote
Old 28-02-2008, 05:01   #14 (permalink)
Larixk
Senior Member
 
Larixk's Avatar
 
Join Date: Sep 2006
Location: Utrecht, Netherlands
Posts: 993
Send a message via MSN to Larixk
Quote:
Originally Posted by pgo
No, it would make every PHP based site on the internet completely insecure and render all security measures pointless.
that would mean any open source php project is, by definition, insecure


which obviously isn't true.
__________________
  Reply With Quote
Old 28-02-2008, 05:34   #15 (permalink)
freelancr
Senior Member
 
freelancr's Avatar
 
Join Date: Oct 2006
Posts: 2,098
Quote:
Originally Posted by cam
Was that the security through obscurity argument being raised?

I concur, BURN THE WITCH!
  Reply With Quote
Old 28-02-2008, 06:14   #16 (permalink)
woodss
Just another web monkey
 
woodss's Avatar
 
Join Date: Mar 2005
Location: Newcastle, UK
Posts: 216
Send a message via ICQ to woodss Send a message via MSN to woodss Send a message via Yahoo to woodss Send a message via Skype™ to woodss
He's trying to steal FaceBook
  Reply With Quote
Old 28-02-2008, 09:58   #17 (permalink)
pgo
misanthrope
 
pgo's Avatar
 
Join Date: Jan 2005
Posts: 12,273
Quote:
Originally Posted by Larixk
that would mean any open source php project is, by definition, insecure


which obviously isn't true.
Quote:
Originally Posted by cam
Was that the security through obscurity argument being raised?
I think you guys misunderstood me. I was referring to the idea that we should be able to "view source" of the PHP on live websites...are you saying you think that's a good idea?!
__________________
  Reply With Quote
Old 28-02-2008, 11:10   #18 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,365
I don't think it's a good idea, no.

Saying 'it would make every PHP based site on the internet completely insecure' is a bit of a stretch though.
__________________
Random goodness at The Blog

  Reply With Quote
Old 28-02-2008, 17:36   #19 (permalink)
Hunch
Grumpy old man
 
Hunch's Avatar
 
Join Date: Oct 2007
Location: North Japan
Posts: 1,617
I think it's a good idea to consider all code, especially code sitting under a web server, to be inherently insecure. Would I write a fairly low risk e-shop in PHP - yeah probably. Would I use PHP for a banking site? Fuck no.
  Reply With Quote
Old 28-02-2008, 17:52   #20 (permalink)
.sleep
Senior Member
 
.sleep's Avatar
 
Join Date: Mar 2007
Location: california
Posts: 276
Send a message via AIM to .sleep
Quote:
Originally Posted by Hunch
Would I use PHP for a banking site? Fuck no.
just hard html that shit.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8