Well i asked here and got what i thought was the answer to my problems, However it seemed not as if i ran my photo insertion script manualy it inserted the photo's to my data base as it should, But when the cron job did it nothing was inserted.
So i have done some research and because the php server api is apache and not cgi i had to do a different cron.
the one i had was..
/usr/bin/php -q /home/your_cpanel_name/public_html/path/to/script/script.php
This ran once an hour and basicaly buggered it up.
I have subsequently found that to run a succesfull cron job using apache i have to use...
lynx -dump http://www.mysite.com/path/to/the/script/script.php
and this now works.
I hope this may be helpful to some people who are in need of a script running automaticaly using a cron.
Perhaps this could be included in a FAQ somewhere as it took me a long time to find what i needed...