Questions tagged as 'php'

2
answers

Doubt mkdir operation

In this code to upload an image, how does mkdir work? I see in the php documentation that mkdir creates a directory but in the case that I show the directory is already created . This example works perfectly, I just want to know how it works m...
asked by 07.11.2018 / 11:24
1
answer

php is not writing csv

and tried to write a csv file with php, somehow you are not writing anything and I would like to know what it could be, if I recommend a php editor for linux, because I'm working with the nano editor from the console, the code is <?php date...
asked by 01.11.2018 / 22:52
1
answer

Save several records from a range of dates [closed]

I have 2 datepicker (Start date and End date), If the Start date is different from the final date placed in the datepicker's, as I do to create in the database a record for each day within the range of selected dates     
asked by 07.11.2018 / 13:31
0
answers

See private publication with link to publish it

I have a function in the function.php file that, when clicked, displays the publications and publishes them automatically. I had to make the publications private because of their content. Do you know how I can do so that they only see with the l...
asked by 01.11.2018 / 22:14
0
answers

PHP Pages with index 0

I need to list results by pages; My array contains X number of results, however I can not get the index of the list to increase by a value of 10 starting from 0. For example: Pagina = 1 Inicio = 0 Fin = 10 So far we go well, the question...
asked by 09.11.2018 / 13:37
1
answer

JSON and utf-8 problems when inserting data in BD from php

I am currently having a problem in decoding PHP characters, I am calling an API using a file_get_contents () and then calling with a variable: $jsondata = file_get_contents(URL DEL API); $data = json_decode($jsondata, t...
asked by 09.11.2018 / 12:41
1
answer

multi language with Laravel 5.2

Greetings to everyone in the community I have a problem when I want to try to place a multi-language site, I have downloaded the language packs and put them in the resources / lang folder of Laravel 5.2 I have configured my view like this:...
asked by 09.11.2018 / 13:44
0
answers

Block a user if another user is already inside

I have a website, which is already finished, but in one of the sections I need to limit the entry to only one user, that is, when there is one user inside that section, no other user can enter it until the first one entered. has left. As I ha...
asked by 31.10.2018 / 12:05
2
answers

How can I resize the image of a height, fixed width proportionally

I have this script to send images to the server, which adds a watermark to the image, but I would like to be able to resize an image giving it a fixed height and that the width adapts proportionally to that height, you could help me, from now on...
asked by 09.11.2018 / 12:32
0
answers

Loading one select from another

I'm trying to load a select from another with ajax and php the code I'm using is the following <?php include_once("configuracionbd.php"); $consultaPrograma = "SELECT * FROM programa ORDER BY id_programa"; $query = mys...
asked by 31.10.2018 / 13:25