Questions tagged as 'php'

1
answer

Is there any way to translate the error messages produced by PHP?

Is there any way to translate error messages in PHP? Example: English    Use of undefined constant X English    Use of undefined constant X     
asked by 03.08.2015 / 18:04
3
answers

How to check for javascript if a new li tag entered through setInterval?

Is it possible to ask through javascript if there is anything new in a list ul - li ? I'm working with a refresh of serInterval , but it's not very dynamic, why? When the box receives a new message the Scroll Height...
asked by 31.07.2015 / 15:32
2
answers

preg_replace with Regex to add a tag

Does anyone know how to do regex select the phrase and add a tag? <li> <p>b) texto muito longo;</p> </li> $FechasemClassAlinea = '<p>[a-z])_.*</p>\n</li>$'; $FechacomClassAlinea = '<p>...
asked by 03.05.2015 / 18:58
1
answer

Pass values to Bootstrap modal

Dear colleagues. I want to pass the values from the mysql database to the bootstrap modal and after a few searches, I found the code below: <a href='#myModal' data-id-pergunta='<?php echo $jm->IdCodFotos; ?>' type="button" clas...
asked by 04.05.2015 / 00:30
1
answer

Implement form, causing the message to be sent directly to my email

I have a contact form on my site. It takes information such as name, email, phone and message. However, this data is displayed only in the administration panel of the site itself. I would like that at the time of contact the code would take the...
asked by 30.04.2015 / 22:47
1
answer

Search without SUBMIT

I have the following code and I do not know how to make it search without needing to give submit, can someone help me? HTML <html> <head> <title>Data Searching Without Page Refresh</title> </head> <bod...
asked by 01.05.2015 / 18:49
1
answer

indexing vs. page generation with PHP

I have some products and all of their information is stored in the database. When a client selects a product, it is sent via POST ID of the product and thus a new page is generated with the product. What does it index on Google?...
asked by 30.04.2015 / 22:12
1
answer

How to search a section in a PDF remotely?

Is there a way for me to search a snippet, or a word in a PDF that is on the internet? I searched the CURL, some libraries, but found nothing. More or less this way: I have a site and in it the guy would insert a name for example: John. After...
asked by 03.05.2015 / 18:01
1
answer

Concatenate hierarchy

I have the following code: <?php function obterID($string) { $res = preg_match('~id="([\w]+)"~i', $string, $IDs); if ($res){ return $IDs[1]; } else { return ""; } } // Lê conteúdo do txt $documento =...
asked by 30.04.2015 / 22:52
1
answer

Charts in Libchart

I'm developing a presentation in Libchart. See below: $dataSet->addPoint(new Point("Ensino Fundamental","16%")); $dataSet->addPoint(new Point("Ensino Médio/Técnico","52%")); $dataSet->addPoint(new Point("Graduação", "41%")); $dataSet-...
asked by 26.05.2015 / 22:34