Questions tagged as 'php'

1
answer

How to translate cakephp 3

I generated the default.pot , I created the pt_BR folder at: link /src/Locale/pt_BR/default.po and put it in config / app.php 'defaultLocale' => env('APP_DEFAULT_LOCALE', 'pt_BR'), translation made with poEdit , but does...
asked by 15.07.2016 / 00:56
1
answer

Running WebSocket direct in php class

I am now starting with websocket, I have developed a realtime chat using the Ratchet library, I would like if there is any way to initialize the websocket without having to run command through the terminal. I saw in the documentation the comm...
asked by 10.07.2016 / 23:06
2
answers

How to send form data with onChange event to php

Good morning, someone can help me with the following problem, I want to send data from two fields, one of type text and another of type select option and I want when I click on the selection do the post. Here is my code. HTML <form metho...
asked by 13.07.2016 / 11:36
1
answer

How to run the same php script via cron without overloading?

What is the best way to run a same php script multiple times by doing random queries for a given column with a limit of 1000 per query of the same mysql table via cron (cpanel) without generating so much overhead? [cron 1] * * * * *...
asked by 17.07.2016 / 03:59
1
answer

web site with items bank image and page

How do I create items for a virtual store type site.  Pull DB items and put paging with 15 items limit.     
asked by 05.05.2016 / 17:13
2
answers

HTML Forms with PHP

I have this great questionnaire, in a modal that when I click the record button, the button does not redirect to the page I want. The error is not of the page registrar.php because I had put a simple alert in it, and it did not wor...
asked by 06.05.2016 / 03:21
1
answer

Timer in PHP

I need to implement a feature, in which a certain code runs several times after a time interval. For example, read files made available by the API every 20 minutes. I tried something of a genre, but I have not tried it, I just want to have an...
asked by 23.03.2016 / 10:59
1
answer

AJAX PHP system - When using $ ("# div"), load ("page.php", {foo: bar}); jQuery not found $ ("# div")

I have an AJAX system in PHP and I have an index.php where I have all src js included: <head> <link rel="stylesheet" href="/assets/fileinput/css/fileinput.min.css" media="all" type="text/css" /> <script src="/assets/plugins/jQu...
asked by 30.03.2016 / 05:57
1
answer

How to save data from multiple MySQL queries?

I have a table with data of several metals and I need to get this data to use on my page, but I can not get all of it, only the first one works. Code: $link = mysqli_connect("localhost", "root", "", "metais"); $result = mysqli_query($link...
asked by 29.03.2016 / 16:19
1
answer

way to perform a SELECT COUNT faster!

I need to make an inquiry to know a total number of operators I own. But the table has almost 18 million records, and it takes a long time to return almost 3 minutes, and that's because I'm doing direct test in the bank. The problem will be g...
asked by 09.03.2017 / 20:04