Questions tagged as 'php'

1
answer

How to avoid the "zend_mm_heap corrupted" error?

In my day-to-day PHP development and release delivery, I get the following error when a build is done in our continuous integration environment: zend_mm_heap corrupted This is a fatal error, which crashes the deploy script and I have to bui...
asked by 04.09.2015 / 15:20
1
answer

Search by proximity [closed]

I'm looking for tutorials to help me implement a search for proximity (like this link: link ). Note that in addition to its location it uses other filters (select and checkbox). Well, my strong is front-end, but I've already started learning PH...
asked by 11.09.2015 / 04:04
2
answers

how to make a substring in an int in PHP

I have the following code: $chk_selectes = $_REQUEST['chk_selectes']; It receives via REQUEST a variable with this value: 000 or 001 or 011 or 111. I need to check each of these elements so I used: $um = substr("$_REQUEST['chk_selecte...
asked by 09.05.2018 / 20:58
1
answer

Routes in CodeIgniter

I would like to know how to create routes in CodeIgniter. At the moment, all I can do is routes of type " www.site.com/index.php/page2 ". I would like to create routes like " www.site.com/page2 " I've tried using the CodeIgniter 3 document...
asked by 08.06.2018 / 14:19
3
answers

Ajax request is not working

I'm having trouble making a request via ajax. The idea is that when checking out the email field a check will be done in the database if there is an equal registered email, but if I use the "dataType: 'json'" it does not work. It only works with...
asked by 23.10.2014 / 01:10
1
answer

Regular expression to extract numbers from "200 # 5; 300 # 10"

What would be the best regular expression for the following entry "200 # 5; 300 # 10"?     
asked by 19.10.2014 / 12:42
1
answer

How to use Javascript to manipulate data from the database? [closed]

I'm now starting to deal with web development in PHP. We know that to have an efficient and dynamic system, it is advisable to use JavaScript, such as, JQuery, AngularJS, Backbone.js and others. But from what I know of Javascipt, it does not hav...
asked by 20.11.2015 / 12:16
2
answers

How to retrieve values contained in a span with jQuery?

How do I get the values that are within a span ? For example: <?php $total_prod = $this->totalRegistros($sql_prod); $preco=$this->getPreco(); for($j=0;$j<$total_prod;$j++){ echo" <div>...
asked by 15.10.2014 / 19:30
2
answers

Get multiple values from a multi select

I need to get values from a multiselect <select id="opcoes" name="opcoes[]" class="select" multiple="multiple" size="5" data-required required="required"> <option value="opcao1">Opção 1</option> <option value="opcao2">...
asked by 03.11.2015 / 13:35
3
answers

How to check if a value is present inside an array?

$idofdb = "25"; $myArray = array(); foreach ( $fthi as $codigo ) { $myArray[] = $codigo['ImoCodigo']; } $checkValues = array_values($myArray); $checkString = implode(',', $checkValues); // 3,4,5,6,7,8,9,10,11,12,13,18,19,14,15,2 I'd like...
asked by 29.11.2015 / 21:41