Tasos Posted April 3, 2014 Share Posted April 3, 2014 Hello i have a question, i dont know if that is possible. I want to call a external page and echo like this below. index.php <?php include 'extern/connect.php'; $title = file_get_contents('extern/title.php'); ?> <head> <title><?php echo $title; ?></title> //here i want to echo also $a from title.php </head> Title.php <?php $a ="Youtube"; $b ="Facebook"; $c ="Myspace"; $d ="Google"; ?> Is that possible ? Thanks for any help Quote Link to comment https://forums.phpfreaks.com/topic/287507-get-from-extern-and-echo-in-title/ Share on other sites More sharing options...
Solution sKunKbad Posted April 3, 2014 Solution Share Posted April 3, 2014 You would need to include title.php, not use file_get_contents. Quote Link to comment https://forums.phpfreaks.com/topic/287507-get-from-extern-and-echo-in-title/#findComment-1474903 Share on other sites More sharing options...
Tasos Posted April 4, 2014 Author Share Posted April 4, 2014 Thank you that was easy Quote Link to comment https://forums.phpfreaks.com/topic/287507-get-from-extern-and-echo-in-title/#findComment-1474904 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.