Include external class php

undinefum

New Member
How can include a external class in a php file?example:\[code\]//Test.class.php<?php class Test{ function print($param){ echo $param; } }?>//######################################################//test.php<?phpinclude('http://www.test.com/Test.class.php'); $obj = new Test();echo $obj->print("hola");?>\[/code\]The class is on another server. I have enabled the \[code\]allow_url_include\[/code\] and \[code\]allow_url_fopen\[/code\].Why can't I call the function \[code\]print\[/code\]?
 
Back
Top