Lefu Posted November 5, 2007 Share Posted November 5, 2007 hello friends, just got "punked" by my hosting firm, they have disabled (allow_url_fopen) and I use my code which is stored in the DB- mysql. usually I had 3 files parent, child,sibling. parent- index.php, child-iframe.php,sibling-content.php upon clicking a manu, I go send a variable from Child to Sibling where the appropriate content will be retrieved from db and echoed by Sibling. already tried this in parent and child: ini_set('allow_url_fopen', 'on'); :-\ have no idea what to do, Link to comment https://forums.phpfreaks.com/topic/76103-just-got-punked/ Share on other sites More sharing options...
PHP_PhREEEk Posted November 5, 2007 Share Posted November 5, 2007 If all of these files are on the same server and the same domain, why not just use INCLUDE? PhREEEk Link to comment https://forums.phpfreaks.com/topic/76103-just-got-punked/#findComment-385276 Share on other sites More sharing options...
btherl Posted November 6, 2007 Share Posted November 6, 2007 For example: require_once('child-iframe.php'); If you want to pass data to the child-iframe.php script, just set the variables like this: $foo = 'bar'; require_once('child-iframe.php'); Variable $foo will be available inside child-iframe.php Link to comment https://forums.phpfreaks.com/topic/76103-just-got-punked/#findComment-385303 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.