Page 1 of 1

PostPosted: Wed Mar 29, 2006 5:26 am
by njw
I'm getting this error when I try to display a form with a date field in it. Any ideas?

Parse error: parse error, unexpected $ in /home/qsgi2ec/public_html/archomai/dataface/HTML/QuickForm/calendar.php on line 1

Many thanks

Neil

PostPosted: Wed Mar 29, 2006 5:29 am
by njw
Sorry - forgot to mention that I'm using v 0.5.3

PostPosted: Wed Mar 29, 2006 8:45 am
by shannah
It looks like some of the files in the dataface 0.5.3 release had macintosh line endings. This isn''t a problem for most systems but evidently some systems don't like them. I have changed the line endings to unix and released a bug-fix release 0.5.3r1 that contains the corrections.

Please download this release and let me know what happens.

PostPosted: Thu Mar 30, 2006 10:00 am
by njw
Thanks Steve, but still get the same error message.

PostPosted: Thu Mar 30, 2006 11:24 am
by njw
Can you send me a copy of the calendar.php file that you are using? I cannot seem to reproduce this. I have tested on PHP 4.4/Apache2 (Solaris), PHP 5/Apache1.3 (OS X), PHP 5/IIS (Windows XP Pro) and cannot seem to reproduce the error. What system are you using?

I suspect that some artifacts may have been introduced when you uploaded the file to your server. Sometimes FTP can muck things up if you upload text files in binary mode and vice versa.

-Steve

PostPosted: Sat Apr 01, 2006 8:18 am
by njw
I am using a Linux server, Apache version 1.3.33 (Unix), PHP 4.3.10, MySQL 4.0.25-standard.

I will email the php file separately.

Many thanks

Neil