curl - calling controller subclass from a php script -


when call php script php controller page like:

curl_setopt($ch, curlopt_url, "http://site.com/admin/importcontroller.php"); 

importcontoller subclass of pagecontroller: importcontroller extends pagecontroller

i'm getting error:

fatal error: class 'pagecontroller' not found in /home/public_html/admin/importcontroller.php on line 8 

is call possible? how?

just add: require_once("pagecontroller.php"); if used other way require_once not included , in case included.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -