A
A
Anton2017-06-14 02:11:05
CodeIgniter
Anton, 2017-06-14 02:11:05

Why does php output part of the code as text?

I decided to upgrade from 7.0.20 to php 7.1
Now part of the code comes out as text.
I can't figure out what's wrong.
CI-3 stands

$_SERVER["DOCUMENT_ROOT"].DIRECTORY_SEPARATOR."upload".DIRECTORY_SEPARATOR."tmp", // No Path to the folder where the file will be uploaded. The folder must have write permissions, and the path can be either absolute or relative. "allowed_types"=>"jpg|jpeg|png", // No MIME types describing file types allowed for upload. Typically, the file extension is used as the MIME type. Multiple types are separated by a vertical bar. "overwrite"=>true, // TRUE/FALSE (boolean) If TRUE, and there is already a file in the folder with the same name as the file being uploaded, it will be overwritten. If false, then there will be no rewriting, and a serial number will be added to the name of the uploaded file. //"max_size"=>"0", // No Maximum file size (in kilobytes). If there is no limit, then we write 0. Note: on many servers with PHP installed, there is a limit on the size of uploaded files, written in the php.ini file. Typically, the default is 2 MB (2048 KB). //"max_width"=>"0", // No Maximum image width in pixels. 0 - unlimited. //"max_height"=>"0", // No The maximum image height in pixels. 0 - unlimited. //"encrypt_name"=>"FALSE", // TRUE/FALSE (boolean) If TRUE, the filename is converted to a randomly generated string. It can be useful if you want to prevent the uploaded file from being recognized by the uploader. "remove_spaces"=>true // TRUE/FALSE (boolean) If TRUE, all spaces in the filename will be converted to underscores. It is recommended to always use this option. );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2017-06-14
Akhmedaliev @finesoft2009

Correct way: make all php tags complete <?php
Wrong way: specify short_open_tag = onand restart php in php.ini.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question