On Sun, 7 Sep 2003 14:57:26 -0400 (EDT)
Kalin Mintchev <[EMAIL PROTECTED]> wrote:

> 
> thanks for replying....
> 
> still notworking but i figured something out...
> apache is using the php under /usr/local/bin/php
> which is 4.3.0...
> 
> so i changed my code to this:
> 
> #!/usr/local/bin/php -q
> 
> mysql_connect(localhost, 'user', 'pass');
> 
> _________________________________________________________
> 
> just this....
> now i get this:
> 
> # ./meLoop.php
> ./meLoop.php: line 5: syntax error near unexpected token `localhost,'
> ./meLoop.php: line 5: `mysql_connect(localhost, 'user', 'pass');'
> 
> 
> please help....
> 
> thanks...
> 
> 

I suspected you had multiple versions of php which is why it
the output of the php commands would have been useful.
Perhaps that's what lead to your discovery ?
Anyway,  you're script needs quotations around "localhost".

Cheers,
Sean


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to