for a design i'm builing now
i'm using only one page with the graphic design, and including all the content with php
the most of the links are something like
index.php?p=galleries/rotatinggalls.php
where "p" is the path to the file with the content
and i'm using this code to include it
<?
$p= $_GET['p'];
if (!$p) $p="main";
include("$p");
?>
till here everything is ok
but when i need to give a value of variable to the included file via url i have a problem
example:
index.php?p=galleries/rotatinggalls.php?link=http://something.com/x/blabla3/&id=tralala
p=galleries/rotatinggalls.php is the file with the content whcih i want to include in the main page with the design
but i have to send two variables to the code in rotatinggalls.php
$link and $id
and when try with the line above, i got
Warning: Failed opening 'galleries/rotatinggalls.php?link=http://something.com/x/blabla3/' for inclusion