Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - About source... | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Book Keeper
♫♫♫ n00blet ♫♫♫

Level: 21

Posts: 30/160
EXP: 49435
For next: 508

Since: 03-15-04
From: Wired

Bookworm eat fresh!

Since last post: 20 hours
Last activity: 8 hours
Posted on 04-06-04 05:08 AM Link | Quote
If I open source (IE) when in a php app, will it show the php code?
Dish

Spiny
Level: 38

Posts: 32/596
EXP: 355646
For next: 14801

Since: 03-15-04
From: Disch

Since last post: 18 days
Last activity: 18 days
Posted on 04-06-04 05:21 AM Link | Quote
no

to my understanding, php is a server side language, meaning it gets interpretted on the server and the output info gets sent to the browser. I could be wrong about that though... I don't know the technical details.

But PHP code definatly won't show if you view source. Imagine all the security problems that would cause
setrodox

Ninji
Level: 26

Posts: 227/238
EXP: 89717
For next: 12558

Since: 03-15-04
From: good old austria

Since last post: 178 days
Last activity: 61 days
Posted on 04-06-04 03:19 PM Link | Quote
Originally posted by Disch
no

to my understanding, php is a server side language, meaning it gets interpretted on the server and the output info gets sent to the browser. I could be wrong about that though... I don't know the technical details.

But PHP code definatly won't show if you view source. Imagine all the security problems that would cause

yeah right. the webserver gets a request to a php file. he sends it to the php interpreter or the php module. this sends back the output(html,image,...) to the webserver. the webserver sends it to the client.
ErkDog

Fuzz Ball
Level: 47

Posts: 181/982
EXP: 752190
For next: 14013

Since: 03-15-04
From: Richmond, VA

Since last post: 40 days
Last activity: 19 days
Posted on 04-07-04 04:20 AM Link | Quote
PHP is Executed by the Web server before any output is given.....

the code you see in View Source is nothing but the HTML the PHP tells the browser to output....

the only way to view the acutal PHP code is to get the actual PHP file....
FreeDOS

Lava Lotus
Wannabe-Mod :<
Level: 59

Posts: 302/1657
EXP: 1648646
For next: 24482

Since: 03-15-04
From: Seattle

Since last post: 6 hours
Last activity: 4 hours
Posted on 04-07-04 04:35 AM Link | Quote
The Web server does not parse the PHP file. PHP's executable creates an extension to the server, so if the server gets a request for a .php, .phps, .php3, or .html file, it sends the file over to the PHP parser to execute it. The parser sends the results to the Web server, and then sends the results to the client. Partially why you can save bandwidth if you instruct PHP to GZip the output.

You can, if the server's on Apache, set up a .htaccess file to prevent the parsing of PHP, for specific extensions, or all at once.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 310/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 04-07-04 05:33 AM Link | Quote
But the point is no, there's no (known) way to view a PHP file's source short of downloading it from a non-http source.
Acmlm

Torosu
heh
Level: 51

Posts: 508/1173
EXP: 981994
For next: 31944

Since: 03-15-04
From: Somewhere that isn't outside of Sherbrooke, Québec, Canada

Since last post: 39 days
Last activity: 3 hours
Posted on 04-07-04 09:04 AM Link | Quote
Or unless the PHP code doesn't run and the .php comes up as plain text like a .txt

But yeah, it'd simply be too much of a security risk if you could view the source of any PHP, ASP, etc. on any site
Weasel
Missionary in Peru
Level: 34

Posts: 121/454
EXP: 236444
For next: 17207

Since: 03-15-04
From: Washington

Since last post: 467 days
Last activity: 339 days
Posted on 04-07-04 10:21 AM Link | Quote
Javascript, on the other hand, is client side, I think. You can see that source code. But PHP is just fine and dandy.



Always remember, when you code open source, you code communism. A message from your friends at Microsoft.
FreeDOS

Lava Lotus
Wannabe-Mod :<
Level: 59

Posts: 304/1657
EXP: 1648646
For next: 24482

Since: 03-15-04
From: Seattle

Since last post: 6 hours
Last activity: 4 hours
Posted on 04-07-04 11:45 AM Link | Quote
Actually, IIS has an option to give the client the ASP source as well as the parsed file. But, of course, it's disabled by default.

Yes, JavaScript is client side.
Darth Coby

Vire
Dacht je nou echt dat het over was?
Dacht je nou echt dat ik gebroken was? Nee toch?
Nou kijk eens goed op uit je ogen gast.
zonder clic heb je geen kloten tjap... bitch
Level: 55

Posts: 448/1371
EXP: 1240774
For next: 73415

Since: 03-15-04
From: Belgium

Since last post: 2 days
Last activity: 9 hours
Posted on 04-10-04 02:56 AM Link | Quote
If you save the the PHP files as .phps then you CAN see the source, it'll even have syntax highlighting and such.
Acmlm

Torosu
heh
Level: 51

Posts: 528/1173
EXP: 981994
For next: 31944

Since: 03-15-04
From: Somewhere that isn't outside of Sherbrooke, Québec, Canada

Since last post: 39 days
Last activity: 3 hours
Posted on 04-10-04 03:18 AM Link | Quote
*tries it*
Hmm, it's the same as renaming it to .txt, I see the source as plain text and the code itself doesn't even run ... or is that just what you meant?
Darth Coby

Vire
Dacht je nou echt dat het over was?
Dacht je nou echt dat ik gebroken was? Nee toch?
Nou kijk eens goed op uit je ogen gast.
zonder clic heb je geen kloten tjap... bitch
Level: 55

Posts: 454/1371
EXP: 1240774
For next: 73415

Since: 03-15-04
From: Belgium

Since last post: 2 days
Last activity: 9 hours
Posted on 04-10-04 03:24 AM Link | Quote
Yes, that's what I meant. It should also have syntax highlighting, well maybe your server doesn't have that enabled or something, but mine does. It makes it really easy to debug scripts and such, you'll never find a missing " faster.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - About source... | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.016 seconds.