You are here: Re: I am stuck: Error on a line that begins with the word "const" !! « All PHP « IT news, forums, messages
Re: I am stuck: Error on a line that begins with the word "const" !!

Posted by Jerry Stuckle on 12/08/07 02:33

adam.timberlake@gmail.com wrote:
> Me again! I am trying to create a currency converter function for my
> eCommerce that still pet treats. I am a little short on money recently
> and so cannot afford a programmer. Can somebody tell me why my script
> tells me that I have a syntax error on the "CONST" line. I am trying
> to follow the article below.
>
> Article: http://www.talkphp.com/showthread.php?t=1503
>
> The error I get is:
>
> Parse error: parse error, expecting `T_OLD_FUNCTION' or
> `T_FUNCTION'...
>
> My server is CentOS 4 or 5, I forget which, running PHP 4.1.0 with
> MySQL 5, I think. The line that it shows me the error on is:
>
> const OPT_FILE = 'talkphp_conversion_rates.json';
>

'const' is not a valid PHP keyword. Maybe you want:

define('OPT_FILE', 'talkphp_conversation_rates.json');

But not having the rest of your code, it's hard to tell.


> Please help! Also, somebody mentioned something about cross-posting on
> newsgroups so that I can post to more than 1 group in case I do not
> get a good answer in 1. Could somebody tell me how to do this with
> Google Groups please!!
>

I have no idea how to do it through GG - get yourself a real newsreader.
Your ISP most probably has access to usenet. It's much better.

> Thannk you.
>


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация