I want to do this:
<?php include_once ("includes/'<?php echo $mymodule1; ?>'.php"); ?>
I try before with:
<?php include_once ("includes/'.echo $mymodule1.'.php"); ?>
But not work :(
You can help me?, many thanks :)
I want to do this:
<?php include_once ("includes/'<?php echo $mymodule1; ?>'.php"); ?>
I try before with:
<?php include_once ("includes/'.echo $mymodule1.'.php"); ?>
But not work :(
You can help me?, many thanks :)
include_once isn't really a function. Only kind of.
Putting a variable in a string:
include_once "includes/{$mymodule1}.php";
Write down the variable without the echo
statement. Either do this:
<?php include_once ("includes/" . $mymodule1 . ".php"); ?>
or this:
<?php include_once ("includes/$mymodule1.php"); ?>
You can directly put the variable , no need for echo here
<?php
include_once('includes/'.$yourvar.'.php');
?>