Questions tagged as 'php'

1
answer

Print php array

Good afternoon everyone! : D I am creating a page in php that informs me of my local ip, I am doing this through the command: shell_exec('ipconfig') until then it is fine as it returns the ip of my correct machine, however it does not ret...
asked by 27.07.2016 / 20:58
1
answer

How to display an image stored in the mysql BLOB field on a php page? [duplicate]

I have a saved image in my mysql blob encoded in base 64. However, I can not display the image on a simple php page. Actually what I want is for the user to click on a product category, to be returned a search done in php that returns the valu...
asked by 27.07.2016 / 04:08
1
answer

Print array value in bash by PHP shell_exec

I have another script, but I simplified it to simulate the problem that persists. test.sh #!/bin/bash ARRAY=('like' 'a' 'stone') echo ${ARRAY[0]} In the file below, I have already made sure that shell_exec is actually executing...
asked by 31.07.2016 / 21:16
1
answer

Disconnect user when entering another account [closed]

Hello, I would like to know how to disconnect a user if he enters another account in the same browser with the same IP, use PHP session, if you can help me thank you very much !! Because the user can log in as many accounts as he wants.     
asked by 28.07.2016 / 05:45
1
answer

date conversion with php [duplicate]

Galera Today I use a very simple way to convert BD (American Standard) dates to PT-BR. The way I use it like this: $data_BD = "2016-07-27"; // Cria nome das variaveis $ano = substr($data_BD,0,-6); $mes = substr($data_BD,5,-3); $dia = sub...
asked by 27.07.2016 / 19:49
1
answer

Select dates based on the total sum of a given column [closed]

Good evening. Based on the example sample file attached, I would have to select all the dates that are the same and are in the same restaurant and that the sum of the quantity is > 10, because I need to disable those dates from my datepicker....
asked by 20.07.2016 / 03:18
2
answers

Join equal records in an HTML table

I have a table that returns me multiple records. Cogido Table: <table> <thead> <tr> <th>N° Prog</th> <th>Data Opr</th> <th>Origem</th>...
asked by 15.07.2016 / 13:35
1
answer

Api PayPal Automatic Payments

Is there any kind of paypal API, which I do when I click on a button on my site, send money from my account to another account automatically? Thank you.     
asked by 01.01.2017 / 21:50
3
answers

Refresh page after action

I have a function to change records in the database and use a modal to show success message or change error. The issue is that I can delete, but I would like to have the page automatically refreshed after this function. elseif(isset($_GET['...
asked by 26.12.2016 / 23:39
2
answers

Treat all hexadecimal colors in a .css file using php and regex

I do not know if they can help me but I want to replace the color in "#xxxxxx" format in a CSS through Regular Expression and PHP. I have a function that calculates the color and replaces it with the inverse color. I need to get the CSS and i...
asked by 24.12.2016 / 03:44