Stuart Rogers <me@privacy.net> wrote in
news:Xns960AD9FD81507stuartfreenews@130.133.1.4:
[color=blue]
>
newdb@no-log.org (denisb) wrote in
> news:1gsnsvs.hi8qbe1olc2sgN%newdb@no-log.org:
>[color=green]
>> Stuart Rogers <me@privacy.net> wrote:[color=darkred]
>>>
newdb@no-log.org (denisb) wrote in
>>> news:1gsnolw.1yvucpyutfv6wN%newdb@no- log.org:
>>> > Stuart Rogers <me@privacy.net> wrote:
>>> >> when I look at the content of jpgraph.php it is just fine
>>> >> $valid_formats = array('png', 'jpg', 'gif');
>>> >> prior to this it gave me a similar error with an invalid single
>>> >> quote at $this_>background_image = $aFileName;
>>> > .......^
>>> >
>>> > typo ?
>>> >
>>> > $this->background_image = $aFileName;
>>> No this is exactly as jpgraph.php line 1110 downloads and runs on my
>>> linux server, there is nothing wrong with either of these lines at
>>> all. As I said the code runs EXACTLY asis on one server but not on
>>> another[/color]
>>
>> ok.
>> in mine (v 1.242.2.96) :
>>
>> ...
>> 1090 $valid_formats = array('png', 'jpg', 'gif');
>> 1091 $aImgFormat = strtolower($e[count($e)-1]);
>> ...
>> 1100 $this->background_image = $aFileName;
>> 1101 $this->background_image_type=$aBgType;
>> 1102 $this->background_image_format=$aImgFormat;
>> 1103 }
>> ...
>>[/color]
>
> That is exactly what I have in the same version just downloaded from
> the jpgraph website today and installed on my hosting site and I still
> get the errors.
>
> I think this is something to do with a setting on PHP and not to do
> with jpgraph at all. I thought I read somewhere about a problem if the
> php.ini file has the short prefix on but I cant find it now....
>
> Also as this is on a hosting site I cant see the php.ini file!
>
> Stuart
>[/color]
Forgot that phpinfo shows the .ini settings and short tag is on on
hosting site.
One thing I have found is that if I edit the line by replacing the code
with the same code it complains about an earier line in the same file,
edit that line and it then complains about an earlier line.... just dont
understand it!