How can I view the contents of a .php on the internet to see the actual code. I am trying to see the code but when I open the page or choose to save it just gives an error on line ... blah blah blah or a blank page.
You can't - the php page is processed and it's output (usually html or xml) is sent to your browser. there is a command highlight_file which can be used to format a php file for reading but you need to have a script on the server to use it.
You are newbie to the programs . All the php code are executed at the server side before sending to browser. You can't view the php code but the html code.
Yes, the PHP pages are server sided.. you cannot save or download it, if you have Server access then you may connect that server by FTP and download the PHP page you want. Thanks
wow! I make one post and I've been swamped with private SPAM messages. Thanks but no thanks .. I've switched em off.
If people could view our PHP files, all hell would break loose! All someone would need to do to get access to your database would be to open your config.php and look at the settings. Now you can see why the php isn't viewable, only it's output. To learn php, check out some tutorials and open source code instead, that will help you more.
once you finally figure this all out, you'll understand why you can't do what you want to do. Considering people put database usernames and passwords in php files, exposing this type of information you be lethal to any internet business.
You can't get php code of web site, server processes the php page and genarate a html from it and outputs it to send browser.