RE: [PHP] web visitor viewing a script?
Only if your webserver has a handler issue will this occur or if you have a .htaccess to override the server from passing onto PHP. This will happen with .php3 files if you don't have them set to be processed by php or any other extension that is not included in your web server configuration file / htaccess. And you are correct unless you have FTP/File Sharing etc you can't view the source of a handler/parsed file. HiTCHO has Spoken! Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED]] Sent: Sunday, 5 January 2003 10:18 AM To: PHP List Subject: [PHP] web visitor viewing a script? This came up in another group and I just wanted to know from the experts whether this is possible. Being someone well versed in PHP can you visit a web site, hit a script in PHP and be able to view the script on the page rather than just the html it generates. Is it true that the only way to view the script itself is to have some problem with the web server or have a local login for the server? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] web visitor viewing a script?
or rename the file to .phps for PHP source. Many servers recognize this mime type as source and send you the file. But if you are thinking about security... the script is compiled and executed on the server. What you see are the results of the application. Get it? This is good and bad... Because it means you can only run each application once and then you have to call it again. Possibly with different parameters etc. It's why I also use JavaScript. The application resides on the client. Meaning the client can interact with it, So lets say you have 2 select boxes. You want to populate the second one with data depending on the selection of the first with out reloading the page. This can be done in JavaScript. Not in PHP. When doing something like that I use PHP to populate my javaScript arrays and JS handle the interaction with the client. Mike *** REPLY SEPARATOR *** On 04/01/2003 at 7:17 PM Larry Brown wrote: This came up in another group and I just wanted to know from the experts whether this is possible. Being someone well versed in PHP can you visit a web site, hit a script in PHP and be able to view the script on the page rather than just the html it generates. Is it true that the only way to view the script itself is to have some problem with the web server or have a local login for the server? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] web visitor viewing a script?
Thank you guys for the confirmation and ...yes I got it. :( Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 04, 2003 8:52 PM To: Larry Brown; [EMAIL PROTECTED] Subject: Re: [PHP] web visitor viewing a script? or rename the file to .phps for PHP source. Many servers recognize this mime type as source and send you the file. But if you are thinking about security... the script is compiled and executed on the server. What you see are the results of the application. Get it? This is good and bad... Because it means you can only run each application once and then you have to call it again. Possibly with different parameters etc. It's why I also use JavaScript. The application resides on the client. Meaning the client can interact with it, So lets say you have 2 select boxes. You want to populate the second one with data depending on the selection of the first with out reloading the page. This can be done in JavaScript. Not in PHP. When doing something like that I use PHP to populate my javaScript arrays and JS handle the interaction with the client. Mike *** REPLY SEPARATOR *** On 04/01/2003 at 7:17 PM Larry Brown wrote: This came up in another group and I just wanted to know from the experts whether this is possible. Being someone well versed in PHP can you visit a web site, hit a script in PHP and be able to view the script on the page rather than just the html it generates. Is it true that the only way to view the script itself is to have some problem with the web server or have a local login for the server? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php