Questions tagged as 'php'

1
answer

generate and send email with pdf file attached with php

In my PHP script, I need to generate a PDF file and send it via email. I have already been able to send an attached file via email using phpmailer and generate a PDF in the browser using fpdf. The problem is that I can not attach the PDF to t...
asked by 31.08.2018 / 14:36
1
answer

Sql of default search per phpmyadmin string

I need to get the same result from a table search that returns the same portion of string and disregards the graphical accent of the search.     
asked by 20.04.2018 / 17:31
0
answers

How to load multilevel relationships?

Hello, I'm trying to search 3 related tables as follows contracts belongsTo - > companies hasMany - > company_addresses. I would like to display company_addresses data in the contracts view. contracts id – integer company_id - in...
asked by 18.04.2018 / 18:38
1
answer

Remove all lines beginning with a specific character

Hello, I have a project that uses file_get_contents(); on an external page and would like to know how I can remove, for example, all lines that start with // . The external page contains comments in JavaScript's and I have not...
asked by 19.04.2018 / 11:46
0
answers

Comparison between dates in PHP [duplicate]

I need a help with logic, but, I can not mount it in PHP (well, I do not want to use this process with mysqli). In the following example, it would be the problem I face, basically. $hoje = date("Y-m-d"); // Retorna data atual (2018-03-15) fo...
asked by 20.03.2018 / 18:47
1
answer

Ajax return error - Json format with PHP

Good evening. I can not find the error. I want to assemble a list as I inform the date in the input date. Below is the html: <div class="form-group"> <label for="data_aula">Turma</label> <di...
asked by 20.03.2018 / 22:05
0
answers

Why turn absolutely everything into Classes in PHP?

My systems in both ASP, Delphi and PHP maintains an old (procedural) middle pattern in programming mode, as I find it tedious to program the way it is today, I see many, if not all, using Classes, Objects and the like in such simple routines and...
asked by 27.03.2018 / 03:11
0
answers

How to create a dynamic website like regular weblogs

I need help with a question I have. The URLs of blogs in general on the web are by directories for example: www.qualquercoisa / post / post-example. I'm creating a blog that is dynamic and I use parameters in the URL to display the content on...
asked by 04.07.2018 / 02:30
0
answers

How to use Data array in Highcharts?

I did this simulation ( jsfiddle too): $(function() { $.ajax({ url: "https://www.json-generator.com/api/json/get/cqueInyKdK?indent=2", type: 'POST' }).done(function(makeTheDO) { console.log(makeTheDO); //data...
asked by 27.03.2018 / 20:05
0
answers

Error in Script with PHP 7.1 [closed]

I have a problem with a module that used to work correctly in PHP version 5.6. After upgrading PHP from server to 7.1 it crashed due to some functions that were previously present in PHP 5.6 and no longer exist from version 7.1. When I try...
asked by 01.07.2018 / 02:35