Hi I'm gettting
<br />
<b>Fatal error</b>: Call to a member function on a non-object in <b>/var/html/test.php</b> on line <b>3</b><br />
line 3 is $test -> main();
Anyone know what the problem is? I want to have the main() function called automatically once I run the test.php batch file
<?php
$test ->main();
class test{
function main(){
do something
}
function send_http($url){
get the source code of website using curl
}
}//end class
Thanks dudes~