Questions tagged as 'php'

3
answers

How to do this regex?

I have some difficulties using REGEX, so I would like help separating the following text example: 1ª Temporada - Nome da temporada 01 - Nome do ep um 02 - Nome do ep dois 03 - Nome do ep três ... 2ª Temporada - Nome da temporada 01 - Nome do e...
asked by 09.04.2018 / 21:19
5
answers

How to create a configuration file in Laravel 4?

I would like to know how to create, import and use new configuration files in a Laravel 4 project. By this, I mean, project files and settings themselves. For example: I would like to create a file that has some static project information, wi...
asked by 16.12.2013 / 11:46
3
answers

How do I count the number of products by category?

Ihavethetabletbl_produtosproduct_idproduct_namecat_productIhavethetabletbl_categoriascategory_idcategory_nameHowwouldIcountthenumberofproductsforagivencategory,forexampleCartazes,whichis000001SQL?  Update     
asked by 25.11.2014 / 18:20
1
answer

How to save multiple inputs with the same "name"?

I need to save multiple input that contains the same "name" , but the problem is that it only saves 1 single result for several. Example: <form method="post" action="guardar.php"> <input type="hidden" name="produto" value="t...
asked by 30.03.2015 / 00:50
1
answer

What this expression means * =

I would like to know what is the meaning of *= in both PHP and Javascript: I have a JS function and I'm converting to PHP, so it came up with *= but I have no idea what it does. In the question of function is right. I would j...
asked by 26.04.2015 / 17:48
2
answers

Problem with the magic method __call

I'm trying to use the magic method __call and the call_user_func_array function to retrieve the method name to be able to load a file. I'm doing it this way //Classe que importa os objetos $obj = 'NovoObjeto'; $metodo = 'import...
asked by 15.12.2014 / 11:48
4
answers

How to send text to the printer with PHP and Javascript?

I need to print text that is not necessarily contained in the html document on a printer installed on the client, I need to open that window to select printers and etc and send the printout. // EDIT In case the printout would be sent to a...
asked by 11.02.2014 / 12:02
2
answers

Redirect site https to http

I currently have a site where you use an SSL certificate, as the certificate has expired and needs to be renewed, SSL error occurs on any browser, making it impossible for users to visit. I would like to redirect traffic https:// to...
asked by 11.05.2014 / 19:28
2
answers

How to solve duplicate PHP object?

I have 2 objects with different values, but when I save it it saves as a single object. Example of how I'm using: class Objeto { private $Nome; public function setNome($Nome){ $this->Nome = $Nome; } public funct...
asked by 09.09.2015 / 16:41
2
answers

What does the application gain using Type Hint?

In PHP 5 we know that type hinting has been added. and now we can declare and force the type of parameter that a function will receive. I believe that it will help in the treatment of the data of more precise form, however what is the gain o...
asked by 25.08.2015 / 16:10