Questions tagged as 'php'

2
answers

How to access the version of an .exe file with PHP?

I need to access the property called "version" in my file, and I know this is not possible in Javascript, but I do not know which language to use, or what to do to get to it. I thought about using PHP, but I do not have much knowledge in this ar...
asked by 19.09.2017 / 21:57
1
answer

How do sessions work at HTTP level?

I came across this question recently and did not find much about it in web . I'm used to working (and reading) about session in PHP , but I never stopped to think how they would be at HTTP level, someone would you know something about?...
asked by 20.11.2017 / 13:07
1
answer

How to solve the code duplication problem?

In Wordpress I'm creating a custom screen in the admin area. For this I am extending my class customProductsListTable to class WP_List_Table : class customProductsListTable extends WP_List_Table I have another class for anot...
asked by 09.10.2017 / 13:10
2
answers

Output in json with json_encode ()

   json_encode () - Returns the JSON representation of a value If I do: $foo = array('a', 'b', 'c', 'd', 'e'); echo json_encode($foo); I'll get: ["a","b","c","d","e"] So far so good, I'm getting an array and turning it into a json...
asked by 10.11.2015 / 16:18
2
answers

Avoid more than one record in the database

I'm having problems because I'm doing a community system where the user registers and shares stories. More when I was testing I clicked to register 2 times and 2 times it went to the database even with a checking function. MYSQL: CAMPO |...
asked by 22.11.2015 / 16:09
2
answers

How to connect two SELECT (combobox) in PHP and do AutoFill?

I would like to know how to connect two select . As if it had a category and a subcategory, but I want the subcategory to appear when I click on the category. I have two tables in the bd a member and another exercise, when I choose my memb...
asked by 24.09.2015 / 16:20
3
answers

Create / Use shortcodes in php

I wanted to know how I can create shortcodes in pure php (I will not use wordpress and its plugins). I do not intend to use functions in php for this purpose. I would like to create a structure where I could name a code in php and when ca...
asked by 12.02.2016 / 14:31
2
answers

PHP - Bring the result of a table according to the most recent message from another table?

So .. I have 3 table: user: | ID | NOME | SOBRENOME | | 01 | Igor | Ferreira | | 02 | João | Henrique | | 03 | Rose | Beltão | following: | ID | user1_id | user2_id | | 01 | 01 | 02 | User 1 > Segu...
asked by 30.07.2015 / 13:51
1
answer

How to insert value returned in form fields with jQuery?

I need, after doing query on BD , to insert values returned in fields of a form, since I will use these fields to make a change in BD , the call to search is working correctly and is configured in this way, function BuscaDados...
asked by 08.09.2015 / 20:54
2
answers

Monitor PHP script processing

Does anyone know a way to monitor PHP code processing and display on the client? I'm designing a layout converter that takes data files in a certain format and converts them to another format. Basically, I would like to present to the us...
asked by 26.06.2015 / 16:49