Forums

include_once with var from another url site

jaume_teixido 18 Feb, 2013
Hello all, and thanks for your time,

I am trying to insert in custom php code, this lines

ob_start();
include_once("http://www.feec.cat/Activitats/compet/comprova_federat_entitat.php?dni=$dni&codibarres=$idenfederat&clau=gfn89s687fj56gsi7");
$fede=ob_get_contents();
ob_clean();
echo $fede;



but it doesn't works
looks like the code dies....


can anyone help me?
thanks.
GreyHead 18 Feb, 2013
Hi jaume_teixido,

I'm pretty certain that PHP doesn't support including remote files. You may be able to add code and read the remote file to get a value and then work with that. Please check the PHP documents for more info.

Bob

PS This StackOverFlow answer may help.
GreyHead 19 Feb, 2013
Hi jaume,

Did you check the StackOverFlow answer I linked to?

Bob
jaume_teixido 20 Feb, 2013
uuuupppps!!!!
sorry!

I didn't saw it

clear and resolved!

thanks.
This topic is locked and no more replies can be posted.