Questions tagged as 'php'

1
answer

How to resolve a "Catchable fatal error"

I'm doing some object-oriented exercises in PHP and at the time of changing the database's data, I come across the following error    Catchable fatal error: Object of class mysqli_result could not be converted to string in /var/www/html/Aluno...
asked by 04.10.2015 / 03:31
1
answer

9 Digit and Row Count via Regex Notepad ++

1st Doubt: How to convert a phonebook that is in the format: 1188888888 1288888888 3188888888 1187877766 To: 11988888888 12988888888 31988888888 11987877766 via notepad ++ regular expression? Or maybe if possible in PHP, as I h...
asked by 13.10.2015 / 20:56
1
answer

How should I organize my controllers using the SOLID methodology?

I am currently developing a project and have noticed that my controllers are responsible for more than one activity. Thinking about it, I remembered the Laravel Brazil Community Hangout on SOLID. The problem is that I do not know the best...
asked by 23.06.2014 / 15:15
2
answers

How do I not insert repeated records?

I am doing a login system in which each user creates a URL that sends to the bank, but I need to make it not repeat information, if there is already information in the database, it returns (URL indisponível) result. p> INPUT COD...
asked by 01.07.2014 / 01:55
1
answer

How to put bilingual Wordpress?

I needed to put a website (template developed by me) under CMS Wordpress in two languages, but the qTranslate plugin did not enable in my version. Is there any way to do it without plugins? Or maybe a plugin that works in version +3.8?     
asked by 15.06.2014 / 21:52
1
answer

multi column adjust content

I'm getting results from a search and displaying on a div using column count width:800px; -webkit-column-count: 3;-moz-column-count: 3;column-count: 3; But I need the column to be closed at the end of the sentence or some kind of wildcard....
asked by 18.06.2014 / 20:50
2
answers

How to make a presentable link

How do I "index" a link on a website to display it in a more presentable way? Example sites / app that do this is whatsapp, facebook, gmail. For example, in whatsapp just paste a link and wait a few seconds for it to take an image and link title...
asked by 08.06.2016 / 17:17
1
answer

In PHP 7, can the class method contain a keyword name? this is good or bad?

PHP 7, has released a number of innovations for the PHP language. Also, I noticed that classes can now have methods with keyword names. The strange thing is that classes can not have, but methods can (vixe!) For example, this is valid in PHP7...
asked by 16.05.2016 / 16:38
1
answer

Use case of the SRP concept in a real application

I am studying some OOP concepts and I see a lot about the SRP issue, "separate actions into classes etc". at the level of tests, I decided to create a small system to register users in order to test the knowledge, only that I came across some qu...
asked by 30.09.2018 / 05:28
2
answers

How can I clone cards on my site?

What is happening is as follows. I am currently trying to solve a big problem, two of the virtual stores of the company that I attend have problems with card cloning. I do not have much experience in this, but I will explain how the card system...
asked by 06.09.2018 / 19:19