i made a script and somehow another site put up the same type of script is there anyway for them to see my php source through the web? im using Server version: Apache/2.2.3 Server built: May 28 2009 12:49:04 PHP 5.2.6 (cli) (built: May 26 2009 22:33:42) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
PHP code is processed on the server before output is viewed by a browser request. So unless someone else can get on the command line or file manager of your web server to view the original .php file, your source code will be hidden from regular users in a web browser. For example, when you type in php variables in your source code, those variables are replaced with the actual data when the output or result of the script is viewed in a browser. Does that help? Or did you have other questions? Thanks.
If a security hole exists in your web application, attackers can call view your source. eg. http://yoursite.com/view.php?style=magnet.css Then, http://yoursite.com/view.php?style=view.php http://yoursite.com/view.php?style=.htaccess