Setting up a cron job in phpMyAdmin

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Setting up a cron job in phpMyAdmin

Post by aceconcepts »

Hi,

I've setup a cron jobwhich is intended to execute a php script.

I get the following message emailed to me when the job is run:

line 1: ?: No such file or directory
line 2: syntax error near unexpected token `"localhost",'
line 2: `$dbh=mysql_connect ("localhost", "uname", "pword") or die ('I cannot connect to the database because: ' . mysql_error());'

The script is supposed to insert some data into a table.

Any ideas?
Post Reply