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, Quote Link to comment 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 Quote Link to comment 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 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.