PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Jul 08, 2020 9:13 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Nov 09, 2007 4:32 am 
Offline
DevNet Resident
User avatar

Joined: Mon Feb 06, 2006 12:26 pm
Posts: 1424
Location: London
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group