Hi there, how can i do something like include('file.php?var=1'); PHP: i tried include('http://www.mydomain.com/file.php?var=1'); PHP: and $var = "1" include('file.php); PHP: with no luck
Numbers 1 and 2 don't work. The last one should. Why doesn't it work? What is it that doesn't work? What do you want to achieve with that include?
improper use of include() function include function embeds another page to your parent page.. on your third example make sure you have the right syntax, $var = '1'; include("file.php");
Thrid one should work if you correct the syntax. You should know the theory well, local file include and remote file operation and two differnt things. Trial and error is not the right way, make sure that you understand the basics well.