M
M
MoyMirok2021-06-18 12:56:44
PHP
MoyMirok, 2021-06-18 12:56:44

PHP Parse error: syntax error, unexpected '=', expecting end of file?

There is a line that php7 swears at, but php5 doesn't swear at. What needs to be fixed?
The code is not mine, written in 2005 for CDR.
Mistake

PHP Parse error:  syntax error, unexpected '=', expecting end of file in /var/www/cdr/call-log.php on line 282, referer:

282nd line
<FORM METHOD=POST ACTION="<?php =$PHP_SELF ?>?s=<?php = $s ?>&t=<?php = $t ?>&order=<?php =$order ?>&sens=<?php =$sens ?>&current_page=<?php =$current_page ?>">

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2021-06-18
@MoyMirok

<?=instead of<?php =

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question