Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Comments for: ian_gilfillan20060503

Message # 1510367:
Date: 12/10/07 00:25
By: Murray
Subject: Call-time pass-by-reference has been deprecat

Hi,

Thanks for your example. When I ran it I first got a message (PHP 5.2):

The image “http://127.0.0.1/imagegraph/test1.php” cannot be displayed, because it contains errors.

I changed the final line from:
$Graph->done();

to:
$Graph->done(
array('filename' => 'output.png')
);

to output to a file and that then displayed the mysterious error:
"Call-time pass-by-reference has been deprecated" etc

To fix this, change the following line:
$Plot =& $Plotarea->addNew('bar', &$Dataset);

To:
$Plot =& $Plotarea->addNew('bar', array(&$Dataset));

Cheers,
Murray

Previous Message | Next Message


Comments:
Need help on creating sub heading in PHPRaghavendra Nayak07/18/08 01:52
Call-time pass-by-reference has been deprecatMurray12/10/07 00:25
RE: outputting graphs to filesKeyur10/12/07 06:53
outputting graphs to filesReinier van Mourik07/13/07 06:59
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.