I want make include of a file with variables like: include("/path/to/file.php?id=xxx"); in file.php i get the id variable with $id=@$_GET["xxx"]; the problem is that variable are not passed.. for $_GET i get a null value.. what can i do to pass the variable id to file.php through include function?
You cannot use include to use a file with variable passed.. use it this way: $variable = "xyz"; include("/path/to/file.php"); In the include file "file.php" use the variable $variable, This will work!