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 Link to comment https://forums.phpfreaks.com/topic/287507-get-from-extern-and-echo-in-title/ Share on other sites More sharing options...
sKunKbad Posted April 3, 2014 Share Posted April 3, 2014 You would need to include title.php, not use file_get_contents. 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 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
Archived
This topic is now archived and is closed to further replies.