Questions tagged as 'php'

1
answer

Problems installing cakePHP on linux ubuntu 16.04

I'm having trouble installing cakePHP on linux. When I run the command composer create-project --prefer-dist cakephp/app [app_name] the following error message appears: Installing cakephp/app (3.5.0) - Installing cakephp/app (3.5...
asked by 24.08.2017 / 16:38
1
answer

PHP in production with composer

I have an application that uses some dependencies and these are managed by the composer everything working in the development environment. But in production, how can you install a php application with dependencies? What do I need to ma...
asked by 28.08.2017 / 22:31
1
answer

Register in the mysql database an array

I would like to know if it is possible to insert multiple values inside a variable in html, pass via POST to php and register each one in a row in the database. For example, enter multiple names through the name="name" field. add everythin...
asked by 29.08.2017 / 02:44
1
answer

Why does the minus sign (remove) button not work when I click it?

I have a text field with an add button next to it. The more I click the button it adds another text field with a remove button next to it. The idea is that when I click the successive remove buttons, it removes the text fields; but no matter wha...
asked by 24.03.2017 / 19:03
3
answers

MySQL - join results from several columns

I have a MySQL table where I need in a single result fields that are in 3 different columns. I'll give you an example: Col.A Col.B Col.C Joaquim Sérgio Ricardo Ricardo Maria César Rafael Solange...
asked by 23.03.2017 / 19:01
1
answer

Interaction between pages

I have a question and would like some tips to update a page through another page. Example: On page "A" I have a list of products and a link to page "B"; The "B" page will open in a new tab and have a form to include new products. I woul...
asked by 31.03.2017 / 09:35
1
answer

Upload / download files with Codeigniter

Talk, how are you? I am developing a small web system at which price to upload budgets and later its download, I am following a tutorial that I found but I am with an error that I can not solve: When I select the file and click process, I'm d...
asked by 28.03.2017 / 21:53
2
answers

Explanation of login and profile validation code [closed]

I've been learning php though (I do not know if it's customary for a beginner) the code is getting a mess as I'm trying new things. I took some lessons on YouTube channel Celke however despite being well didactic some of the times it seems to me...
asked by 02.04.2017 / 04:50
2
answers

Separate only the email and user from a string

Hello, I have the following string: $string = uniqid(mt_rand(1, 999999))." [email protected]|example123456" The above string is totally random, the only thing that does not change is [email protected]|example123456 . I want PHP to o...
asked by 26.02.2017 / 12:08
4
answers

How to create multiple folders with mkdir

Hello, I would like to know how to create multiple folders at once, for example, with this code: <?php $empresa = "Google"; $tipo = "Abertura"; $nome = "Contrato Social"; mkdir('$empresa/$tipo/$nome'); ?>...
asked by 23.02.2017 / 17:28