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 Quote Link to comment Share on other sites More sharing options...
Q Posted July 9, 2009 Share Posted July 9, 2009 You should look into php.net/fopen Quote Link to comment 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! 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.