Questions tagged as 'php'

1
answer

How to retrieve categories linked to a post?

Uploaded to Github ( link ) a small project in Laravel, something very initial. I want as soon as possible to fix the routes, to structure the methods, etc. I released this premature code because I came across a problem that I can not solve o...
asked by 12.04.2017 / 05:21
3
answers

Separate values from a variable

Hello friends I need to separate values from a variable I get values like this: -4.08768, -63.141322 23/04/2017 22:00:00 I need the values separated each with a type variable like this: -4.08768, -63.141322 23/04/2017 22:00:00 I...
asked by 24.04.2017 / 04:56
0
answers

Upload multiple files, but each one at a time? [closed]

I'm looking for some code that uploads multiple files to the PHP server, but in the style of Google Drive: One file at a time, but in the same form. Type the image below:     
asked by 15.05.2017 / 13:34
1
answer

My bot on Telegram is looping on messages

Hello, I have the following code: <?php function readUpdate($updateId) { $fh = fopen(basename(__FILE__, '.php').'.txt', 'a'); fwrite($fh, $updateId.' '); fclose($fh); } function sendMessage($chatId, $text) { if(!empty($ch...
asked by 15.04.2017 / 23:49
3
answers

What is the difference between var $ var and public $ var?

I have a class: class anyClass{ public $var1; var $var2; } What's the difference between $ var1 and $ var2?     
asked by 13.07.2015 / 06:31
0
answers

How to authenticate a javascript application (browser) in a PHP API?

Folks, I'm trying to develop a PHP API (Laravel) to consume it both in my SITE (angular) and in the mobile applications that I'm going to develop. However, I'm having trouble implementing a secure authentication that allows me to update user se...
asked by 26.08.2016 / 01:40
0
answers

Login Function

Good afternoon I had a problem with my login script, it tells me that the email does not exist in the bank, the problem I always did this way, and now I have no idea what I did wrong Login function function login($conexao, $email, $senha...
asked by 30.05.2017 / 17:21
1
answer

Send id by URL to full calendar

I use Full Calendar to display a calendar on my system, but I am not able to send a id through the url of the file that json mounts with the dates, and I need to filter the events that are only bound to this id . Here is my code b...
asked by 27.05.2017 / 03:39
1
answer

How to sum array data in json specified by date

array(10) { [0]=> array(4) { ["data"]=> string(10) "01/11/2015" ["valor"]=> int(50) ["intensidade"]=> float(37.5) ["carga"]=> int(35) } [1]=> array(4) { ["data"]=> string(10)...
asked by 31.10.2015 / 22:05
1
answer

writing multiple images to the destination folder and to the database with php and mysql [closed]

How can I send 5 images to the destination folder (upload), and at the same time already save the names (img.jpeg) of these images in the database table, using PHP and MySql? I tried using the same reasoning as I use to send a single file, an...
asked by 04.11.2015 / 00:34