Questions tagged as 'php'

2
answers

How to make the variable id not repeat in the loop?

I am trying to get associative%% as argument of this methods, actually receive a array in the first argument and a numeric value in the second. My question is how to make the array variable not repeat? Well, you're giving thi...
asked by 19.11.2014 / 18:53
1
answer

Camufling sender address in an email in PHP

I can not camouflage the sender address @ anycoisa.com , I am obliged to use the one from my domain, but in my submission script that I lost I could camouflage, but I think this is hosting thing I use kinghost, the other time I did not use the...
asked by 16.10.2014 / 07:56
2
answers

How do I get the a tag inside a DIV using XPATH?

I'm trying to get the data from a DIV that contains the following structure: <div class="item" style="height:273px"> <a href="/arapiraca/anuncios/detalhes/159695-honda-cg-150-2008"> <img alt="" src="/i.php?w=148&h=119&am...
asked by 23.04.2014 / 16:32
4
answers

How to space the "fixed title" of a page and the posts?

During the creation of the page, I decided to put a "title" which will have the site name and some tabs for the user to be forwarded; however, it always overlaps the first post: Sinceeachpostislikethis: Using PHP, CSS, or HTML, how can I make...
asked by 16.07.2014 / 03:02
1
answer

How to leave code in php commented correctly?

How to leave a php code well commented in a way that is easy to read, understand and easy to search for future maintenance or reading of other programmers?     
asked by 21.07.2014 / 16:02
1
answer

Use a component inside a Shell Console in CakePHP

Does anyone know how to use a component that I created in cakephp within a cake console script? I've tried using App :: import but I could not. For example in a normal controller I can use my component as follows: public $components = ar...
asked by 25.04.2014 / 21:15
1
answer

Doctrine2 using composer namespace error

Hello, I'm creating a file that serves as base class in Entities \ BaseTable.php as follows: <?php namespace Entidades; use Doctrine\Common\Collections\ArrayCollection; /** * @MappedSuperclass */ class BaseTable { /** * @Id @Col...
asked by 01.09.2014 / 22:19
1
answer

Does Crontab not kill processes after they are gone?

I'm using the Crontab to run a PHP script every 10 minutes the problem is that the processes are getting to run on the server, ie every 10 minutes I have one more process to run. crontab -e */5 * * * * /usr/bin/php /path/to/test/test.php...
asked by 05.11.2014 / 18:30
2
answers

Receiving login id

I'm using the PagSeguro PHP API to perform a transparent checkout. I'm having problems when I switch from sandbox to production environment. Below the code snippet jQuery jQuery.ajax({ url: "url/GetSessionId", type:"GET",...
asked by 07.11.2014 / 20:22
2
answers

Routing Codeigniter

I am making a site with administrative area using the Framework Codeigniter. In the administrative area, the user can create new pages for the site. The content of the page will be saved to the database. The controller that reads the pages of...
asked by 10.11.2014 / 17:01