Thanks very mush for your replies. Sorry if I seem an amateur but basically I am and I'm trying to learn as mush as I can.
@SeLLeRoNe: I've been trying to figure out the CLI, CGI part. If found following text on this page:
http://www.htmlcenter.com/blog/running-php-scripts-with-cron/
You will need to find out the answer to the following question, “Is my PHP installed as CGI or as an Apache module?”. To find out do the following: Create a new file, name it info.php (just an example), and put in the following code, “<? phpinfo(); ?>”. Upload to your webserver and go to it with your browser.
Now check for Server API (4th item from the top), if it says “CGI”, you have PHP compiled as CGI, if it reads “Apache”, you have it running as an Apache module.
If I do that I find "Apache 2.0 Handler" under "Server API". According to the text above PHP is installed as an Apache module and not CGI. (I don't know if thats the same as CLI).
However: I have a Joomla site running on that domain and when I check the larger PHP info page in the admin I can not find any reference to CLI but "mod_cgi" at "Loaded Modules" and "CGI/1.1" at "GATEWAY_INTERFACE".
As for command line, I logged in once on my server using the console on my Mac so I should be able to do that again. Other then that I don't really know what I am doing so it seems unwise to just start sending commando's.
@zEitEr: The file is one I wrote myself, it's just a php file running a script to parse an external xml file and insert the data to the database. A real programmer will probably turn green when seeing my code but it works perfectly when I trigger it with a browser. Other then it's basic functions there is no code and I just dropped it on the server over ftp.
Thanks for your offer. If you don't mind I want to try and figure this out and maybe understand why it doesn't work. After all I need to get this running some day so I might come back to you on that offer.
Could it be I need to ad some code to the php file? I have a gut feeling it's something with the file and not the corncob.