Jump to content

get from extern and echo in title


Tasos

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.