Questions tagged as 'php'

0
answers

How to browse data from an HTM file?

I need to go through the data of a .htm that is zipped in this file.zip to get the date, numbers drawn and number of winners. But I have no idea how to do this in an automated way. Can anyone tell me what tool or technology to use to ge...
asked by 24.05.2018 / 04:23
1
answer

Create an environment variable for users without access to bash (/ sbin / nologin)?

I'm trying to create an environment variable that will be accessed by a php script by the user running httpd (user: apache). It is defined as /sbin/nologin and therefore does not access .profile , profile , .bashrc , etc...
asked by 12.11.2017 / 17:30
1
answer

Failed to register NULL value in database - PHP7

Good night everyone, I'm a beginner and I'm developing a CATEGORY and SUBCATEGORY registration system in PHP7 and MYSQL; The logic I used to register for Categories and Subcategories is: All PAI CATEGORY is null and any subcategory has a v...
asked by 13.11.2017 / 00:13
3
answers

Refresh button using jQuery

I want to update two fields in the database but without needing to refresh the page but I'm having trouble implementing something like this. That when I click on the UPDATE button the Phone and Mobile fields will be updated in the bank. Follow t...
asked by 14.11.2017 / 12:58
0
answers

Form for a different model

I'm using CakePHP 2.6.4. I have two tables in the database: despesas and receitas . I have CRUD's methods of expenditure and revenue. I created the controller RelatoriosController for detailed expense and revenue reports...
asked by 26.10.2017 / 20:23
1
answer

How to transform loops into recursive function

This program makes the professional aptitude test based on the logic of fuzzy relations. I have to transform these loops into a recursive function, I researched and even understood how a recursive function should be implemented, but I could not...
asked by 27.10.2017 / 20:44
1
answer

Return bank data in the table

Good morning, people. I'm starting in PHP and did this function below with the purpose of returning the data from two tables of my database in a table, I just can not make it work at all. Can someone help me? MODEL: public static function l...
asked by 26.10.2017 / 16:00
0
answers

Is this a good way to instantiate a modal without leaving residues in html?

The initial phase of the project I'm working on is almost over, and I'm adjusting things done in a not very well done way. One of these things was that I left two modal elements of residue in my% base% to use them in the response of requests,...
asked by 26.10.2017 / 19:51
0
answers

Regular expression in Laravel

I'm not very good at regex but using the link site I was able to generate an expression that accepts: Do not accept special characters You can have up to 5 words separated by whitespace The generated regex: (^\w{0,30}){1}(\s?(\w{0,...
asked by 11.06.2018 / 03:44
1
answer

How to convert / Date (1533524400000-0300) / to PHP

I get a return from a JSON date in this format: /Date(1533524400000-0300)/ How to convoke a DateTime in PHP?     
asked by 08.06.2018 / 15:31