I am having problems when I run my salesreport.php

A PHP Error was encountered

Severity: 8192

Message: Assigning the return value of new by reference is deprecated

Filename: controllers/salesreport.php

Line Number: 390

I checked line 390 and here is the code

$pdf =& new Cezpdf('LETTER', 'landscape');

What should I do?
I am running xampp on localhost. Someone told me that my localhost is the problem

Member Avatar for diafol

=& means to pass by reference. Had to do it in PHP4. I *think* that PHP5 passes all vars by reference anyway, so the & is not req'd. Try:

$pdf = new Cezpdf('LETTER', 'landscape');
commented: Thank you +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.