redosites Posted February 3, 2007 Share Posted February 3, 2007 Is it possible to require or include a file from an external server? For example: <?php require 'http://www.example.com/body.php'; ?> This does not seem to work, is it possible? I realize that this can be done with client side languages, is it possible with server-side? Thanks, Chase Link to comment https://forums.phpfreaks.com/topic/36939-need-help/ Share on other sites More sharing options...
wildteen88 Posted February 3, 2007 Share Posted February 3, 2007 This can only be done if safe_mode is off and allow_url_fopen wrappers is enabled in the php.ini If you use php5.2 or greater make sure allow_url_include is enabled instead of allow_url_fopen. Link to comment https://forums.phpfreaks.com/topic/36939-need-help/#findComment-176239 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.