Problem including a file

A

Anonymous

Guest
Hi to all,

I had 2 files(a.php,b.php) in /temp/ folder
a.php holds all the code and b.php is going to include the a.php, as i follow the documentation, i was suppose to copy this line into b.php:

<?php include("/temp/b.php?popw_book_id=3&".$_SERVER['QUERY_STRING']); ?>

but when i run the page, it gives me a blank page without any errors. Is there anything i can do to determine what is wrong.
 
You can't pass parameters to an included file in the way you describe. If you want ot pass variables to an included file, just declare them as ordinary variables:

Code:
<?php
$popw_book_id = 3;
include '/temp/b.php';
?>
 
Back
Top