boemboem Posted February 22, 2009 Share Posted February 22, 2009 Hello all, I haver being googleing for some time now, but I cant find it. So maybe it does not excist but I'll ask anyways. My question: Is there a way to view a souce code of a php page? I know how to view a source code, but I believe that's partly generated from the php file. Quote Link to comment Share on other sites More sharing options...
Mchl Posted February 22, 2009 Share Posted February 22, 2009 No. All PHP is executed on the server and (given that server is working correctly) it is never send to client. Quote Link to comment Share on other sites More sharing options...
tefuzz Posted February 22, 2009 Share Posted February 22, 2009 i'm a php beginner, but im 99% that you need to have the actual file saved locally, or be able to open in it an online editor which would mean having direct access to it from the server... Quote Link to comment Share on other sites More sharing options...
redarrow Posted February 22, 2009 Share Posted February 22, 2009 If you want to see php code, you need to open the page where it sits, like the htdocs on the server, you can use any editor that can edit typed words, but if you edited the page, it then needs to be saved as a .php file and placed back where it sat on the server. they say notepad ++ is grate as it free Quote Link to comment Share on other sites More sharing options...
boemboem Posted February 23, 2009 Author Share Posted February 23, 2009 I understand, but is there a way to save a php file wich isn't mine? for example: I ould like to see the source of this php file: http://www.hcc-cup.nl/help.php I can view the source, but that isn't the "real" source, this is for educational purpose only of course. Quote Link to comment Share on other sites More sharing options...
Mchl Posted February 23, 2009 Share Posted February 23, 2009 Unless you have ftp access to the server, there is no way. Quote Link to comment Share on other sites More sharing options...
boemboem Posted February 23, 2009 Author Share Posted February 23, 2009 ok, thx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.