Answer the question
In order to leave comments, you need to log in
How to fix an error when running composer install?
The situation is this, there is a Snipe-IT accounting system . To install it, Composer is required , which I have not encountered before. Installed globally using the official site. Following the developer's manual, I performed composer install in the directory with the project files. I got the following error:
[RuntimeException] The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly
Answer the question
In order to leave comments, you need to log in
COMPOSER_HOME="~/.composer/vendor/" php composer.phar install
You don't have a file in $_FILE, you can see it from 'tempName' => string '' and error itself about it. See form submit, is it worth multipart/form-data etc.
public 'error' => int 1 is a constant as I understand it - define ('UPLOAD_ERR_INI_SIZE', 1);
Actually, this is what public 'size' => int 0 is talking about . An
empty file type.
UPD
Look at what you have in the $type variable - is it possible to upload the php file type at all?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question