Dtonlinegames Posted July 9, 2009 Share Posted July 9, 2009 hey guys, Is there anyway I can read a local PHP scripts source or can I only read its output? as in this file in public_html>index.php can read public_html>example.php's source code? I'm trying to build a plug and play system for my admin application at work so I dont have to go round integrating everything with constructors all the time. Cheers in advance guys Link to comment https://forums.phpfreaks.com/topic/165334-reading-local-source/ Share on other sites More sharing options...
Q Posted July 9, 2009 Share Posted July 9, 2009 You should look into php.net/fopen Link to comment https://forums.phpfreaks.com/topic/165334-reading-local-source/#findComment-871894 Share on other sites More sharing options...
Dtonlinegames Posted July 9, 2009 Author Share Posted July 9, 2009 I just thought how it would be so much easier, I can save my PHP files without the <?php ?> wrappers so the server doesnt execute it and give me the output I can scan the files all I want that way using preg_match_all then If anyone has any better ways of doing this then great! Link to comment https://forums.phpfreaks.com/topic/165334-reading-local-source/#findComment-871896 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.