I am including a file : <? include xyz.php?text=one two three ?> and in xyz.php there are <? echo($text) ?>, but it keep telling me that can't include this file 😐
including xyz.php only face no problems
thanks.
Use a full URL instead of just the filename... as per http://www.php.net/manual/en/function.include.php
you cannot include a file as url one when you type <? include("xyz.php?text=one two three") ?> then php understand, that the file "xyz.php?text=one two three" should be included, not the xyz.php
And that's not even valid as a URL.
If you want to set $text to something in xyz.php,
$text="one two three"; include 'xyz.php';
In short, include takes filenames, not URLs.