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. Link to comment https://forums.phpfreaks.com/topic/146361-solved-view-php-source-of-a-webpage/ 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. Link to comment https://forums.phpfreaks.com/topic/146361-solved-view-php-source-of-a-webpage/#findComment-768438 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... Link to comment https://forums.phpfreaks.com/topic/146361-solved-view-php-source-of-a-webpage/#findComment-768447 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 Link to comment https://forums.phpfreaks.com/topic/146361-solved-view-php-source-of-a-webpage/#findComment-768451 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. Link to comment https://forums.phpfreaks.com/topic/146361-solved-view-php-source-of-a-webpage/#findComment-768989 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. Link to comment https://forums.phpfreaks.com/topic/146361-solved-view-php-source-of-a-webpage/#findComment-768991 Share on other sites More sharing options...
boemboem Posted February 23, 2009 Author Share Posted February 23, 2009 ok, thx Link to comment https://forums.phpfreaks.com/topic/146361-solved-view-php-source-of-a-webpage/#findComment-769003 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.