Jump to content

reading local source


Dtonlinegames

Recommended Posts

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

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! :D

Link to comment
https://forums.phpfreaks.com/topic/165334-reading-local-source/#findComment-871896
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.