Questions tagged as 'php'

1
answer

query by the number of the day of the week Mysql

The week has 7 days, so I want to be able to make an appointment depending on the day of the week you choose to show the result: mysql_query("SELECT * FROM tbl_eventos WHERE WEEK(data) = '$semana_atual' AND YEAR(data) = '$ano_atual'"); Now...
asked by 11.02.2015 / 16:31
1
answer

How to search for an element in XML with PHP?

I'm starting to work with PHP now, so I do not know much. So, sorry if the question is too clueless. I have an XML file type like this: <usuários><br> <fulano> <codigo>287983</codigo> <pontos>50<...
asked by 10.02.2015 / 00:23
1
answer

Route system in PHP using the Google Maps API

I am terminating a system in PHP, where the client asked if he has how to generate a route between companies, and generate the shortest one, for example, he has 50 companies registered in the database, with address and everything else, he I want...
asked by 06.02.2015 / 01:15
1
answer

Slow response PHP API

I'm doing a project with bands profiles. I'm trying to use the last.fm API. For test database I downloaded the PHP API: link The classes I left in Root / src / classes.php, and I started using Artist :: search ($ artistName, $ limit);...
asked by 27.02.2015 / 12:33
2
answers

Form Construction

After several months without using Laravel, I now return with this version 5. It may sound like bullshit, but I'm having trouble creating a simple form. It seems that the Illumiante / html is not coming by default in the framework, so it is nece...
asked by 20.02.2015 / 16:41
2
answers

Running Silex on the shared provider

I just uploaded a site to Locaweb in a simple and shared Linux hosting, but for a change it did not work. I suppose this is because the index is not in the root of the site, but in the public folder. Question: How do I make the index w...
asked by 24.02.2015 / 23:47
2
answers

Problem with HABTM in Cakephp 2.x

I'm having problems while searching my view method, where I have the following search: public function view($id = null) { if (!$this->Setor->exists($id)) { throw new NotFoundException(__('Parâmetro inválido!')); } $o...
asked by 26.02.2014 / 22:28
1
answer

Zend Framework Class Inheritance - Modules with Prefix

I'm developing a PHP project with Zend Framework and I have the following problem: I created a class called BaseController in my module "Admin". I seted the option: resources.frontController.prefixDefaultModule = "true" So the names of...
asked by 21.02.2014 / 15:12
0
answers

In PHP, does the inner pointer of an array make up its value?

Consider the following array : $a = [1, 2, 3, 4, 5]; However, I noticed that the pointer position of the array is also copied. If before we set $b = $a to be a copy of $b we change the position of the pointer: $a...
asked by 06.12.2018 / 15:14
1
answer

Constant error in the DOMPDF library

I installed the dompdf package on laravel4, using the composer. However, you are giving the following error when trying to create the object:    Use of undefined constant DOMPDF_TEMP_DIR - assumed 'DOMPDF_TEMP_DIR' The php being used is 5...
asked by 06.01.2014 / 18:47