Questions tagged as 'php'

1
answer

Everything I can do in POO I can do in PE?

Can I do everything or change anything? Do I have limits on structured programming that I do not have in OOP?     
asked by 09.06.2017 / 20:19
3
answers

PHPDoc - What is it, what is its usefulness and how to use it?

On these days, I've been doing a lot of files on frameworks, projects, etc., and I'm seeing several things I've never seen, one of them is PHPDoc (I got the name thanks to my IDE) about! Example : class Foo { /** * Constructor...
asked by 07.03.2016 / 10:08
2
answers

NFC-e integration API (electronic consumer invoice) with PHP

Does anyone know of any Electronic Consumer Invoice integration manual for PHP usage? I am developing a system that contains sales control, and I would need to issue an NFC-e, but I do not find any documentation talking about it anywhere.     
asked by 28.07.2015 / 21:06
2
answers

Join two tables with PHP

I have two tables in the database, one listing the posts made and the other one of the registered users. Columns that I have in the posts table: ID || TEXTO || ID_USER || Columns that I have in the user table: ID || NOME_USER || SENHA...
asked by 31.08.2014 / 07:31
2
answers

"Variable system" with regular expressions

I have a file something like this: %usuario: 'Anônimo' Olá <b>%{usuario}</b> (This is just an example and is not the real case), but I think if I were to explain the real problem it would give me a lot more work to understand, s...
asked by 11.04.2014 / 16:46
1
answer

What is the order of processing a PHP script?

Example scenario: echo hello(); echo '<br>'; echo 'Hello ' . world('World'); function hello() { return 'World'; } function world($v) { return $v; } Output: World Hello World How does PHP process this? Ab...
asked by 08.05.2018 / 18:27
2
answers

Mail function and its limits

I'm developing a tool to send bulk emails to a list of 20,000 emails, and the script is this: <?php $path = "listas/lista1.txt"; $ponteiro = fopen ("$path", "r"); $conteudo = fread ($ponteiro, file...
asked by 02.05.2014 / 01:26
2
answers

Directory listing appears with dots, how to remove?

I want to list image files in a folder, but the first two links that are generated appear like this: <img class="mySlides" src="Arifureta-shokugyou/capitulo-2/." style="width:100%" /> <img class="mySlides" src="Arifureta-shokugyou/cap...
asked by 24.10.2018 / 02:18
2
answers

Problem with @extends in view in Laravel.

I'm having a problem with @extends('layouts.template') . Only my view that is like index that does not show the page, instead shows me only this @extends('layouts.template') on the page. What could it be? obs: the route is normal...
asked by 19.12.2013 / 11:44
2
answers

How to store the value of the indexes of this JSON in variable?

I have a function in php that returns this to me. [{"id":81,"username":"usuarioteste23"}] How can I save a Username and variable in a variable? Thank you.     
asked by 21.01.2016 / 11:57