Im trying to split up my functions a bit, so that all my php files arent huge. But having trouble getting them to call each other.
I have a file called pic.php, which has a function picture with arguements, $homepage, $search & $input
I cant seem to get another file to call the function, atm im using:
$homepage = 'http://www.nokia.com';
$search = 'http://www.nokia.com/search/index.jsp?qt=3220';
$input = '3220';
include('pic.php');
picture($homepage, $search, $input);
But this shows a blank page, with an error in the source code:
<b>Fatal error</b>: Call to undefined function picture() in <b>C:\apachefriends\xampp\htdocs\project\dbimage.php</b> on line <b>26</b><br />
Btw line 26 corresponds to the picture(...) line