Questions tagged as 'php'

2
answers

How to analyze malformed HTML syntactically?

As part of a procedure, I need to extract the contents of a table present on a page. I'm using cURL to get the raw HTML data and the Simple HTML DOM Parser to parse and render HTML. <?php // (...) require_once('simple_html_dom.php'); //...
asked by 29.01.2015 / 17:57
1
answer

How to use FreeTDS with MAMP on Mac OS?

I need to use the PHP mssql methods and I always did this using FreeTDS in the native Apache MAC OS >. What happens is that shortly after upgrading to OS X 10.9 (Mavericks) I started to use the MAMP package and not the native Apache...
asked by 17.12.2013 / 14:17
1
answer

Why does PHP allow you to create identifier names with special characters?

Normally in programming languages and databases, identifier names (variables, functions, classes, methods, tables, fields, etc.) must begin with a letter or underline , numbers can come in sequence and to avoid problems accented and special cha...
asked by 28.10.2014 / 21:30
1
answer

How to concatenate a SQL statement inside a MySQL Stored Procedure?

In the following example, we have an example already running in PHP. The scenario of the issue is the setting up of a "navigation link" based on a data structure. $node = '006002009'; // Esta informação é obtida dinamicamente. $segmentos = s...
asked by 16.03.2015 / 03:19
2
answers

Declaring a class with a reserved word name is a good idea?

Generally, when we are going to define names for class and functions, there is a concern when colliding with palavras-chaves of language. The curious thing is that I noticed that in PHP it is allowed to define class and functions with...
asked by 02.03.2015 / 13:49
2
answers

Is it bad to use the default PHP session engine?

I realize that many frameworks , like Codeigniter and Laravel 3 and 4 use a proprietary session storage mechanism. They do not use the default PHP mechanism (Variable $_SESSION and session_start , among other things). And when I...
asked by 26.01.2016 / 14:15
1
answer

Error sending Upload with Ajax

I'm trying to upload a file via Upload to a certain folder but I'm not able to make or understand the error being accused by the script, I'll try to be as clear as possible in describing the problem. Here is the excerpt from Upload Upload: //...
asked by 28.07.2015 / 15:16
3
answers

How to get content within string up to a "bar /" character

I have the following String: $link = '13542345/essa_e_minhastring'; How do I get only the value up to the "/" bar and ignore the rest? I'd like to assign this value to a variable. I'm using the following code, but it just breaks the s...
asked by 28.09.2015 / 23:17
6
answers

How to save the day in the bank?

How do I automatically save the day in the database without having to spend it when adding the product, ie every time you add a product, it automatically writes the date of the computer to a table attribute.     
asked by 08.10.2015 / 18:30
2
answers

Voice connection between two points

I would like to study about, read how it is done and all possible details about making voice calls between two points A and B It also works these links between users like viber, WhatsApp, facebook provide. Is it possible to use PHP HTML5 J...
asked by 17.02.2015 / 03:49