Questions tagged as 'php'

1
answer

Mounting a 'frame' in html from an array in php

The tables: Science (eg Mathematics, Biology, Chemistry). Areas (eg Algebra I, Biochemistry, Botany, Chemical Bonding). Exercises (eg Water, Algae, Bryophytes, Progressions, Chemical Bonding). To use as in this example [Table 01] in h...
asked by 22.07.2016 / 17:09
1
answer

Search name region / city php

I'm using Yahoo's Weather API. The thing is, I want the time to be presented to the user's location. Given that I am using the following: $BASE_URL = "http://query.yahooapis.com/v1/public/yql"; $yql_query = 'select item from weather.forecas...
asked by 20.07.2016 / 11:25
2
answers

How to get the text of a radio button?

In my code I check the selected radio and would like to get the radio text field as well. How should I do it?! No while it mounts the radius according to the values found in the table and shows the name of the fields found. <? while(...
asked by 02.09.2014 / 19:39
2
answers

Shell_Exec (): How to keep process active when restarting apache?

The processes run by php's shell_exec () end up restarting apache. Is it possible to keep processes running uninterrupted when restarting apache? Below the code I'm using: $Command = "ksh -c '( trap \"\" 1 2 3 4 15; "; $Command .= "./sc_se...
asked by 31.08.2014 / 19:25
1
answer

How to pass data to all views in an MVC pattern?

I'm building a small MVC application with PHP , following directory structure: controllers / views / (Views files) In each controller, I pass an instance of the VIEW object with an array with data to be able to use it in the...
asked by 26.04.2014 / 05:17
2
answers

Highlight a time with PHP that is stored in the database

I'm creating a small table that has 7 columns, the first row of each column represents one day and the remaining times are that day's schedule. I want the times that are stored in the database to be highlighted in this table. I tried in some...
asked by 15.04.2014 / 22:21
3
answers

Login to Paypal

I'm trying to log into Paypal and get the value of the account balance, but to no avail. My code: <?php include ("curl.php"); $fp=fopen("fpaypal","w"); fwrite($fp, ""); fclose($fp); $curl = new curl; if(isset($_POST['txt'])) { $l...
asked by 22.04.2014 / 02:01
1
answer

Dropping a level in the array

I have an array as follows: Array ( [Fatura] => Array ( [id] => 821 [numero] => 5014 [vencimento] => 22122014 [emissao] => 22122013 [cliente_id] => 123...
asked by 21.04.2014 / 21:28
3
answers

Create HTML table and show data, using PHP [duplicate]

I would like to see if anyone can help me with this problem of creating an HTML table in php. <?php <p><b>Alvará: </b></p> <p>Alvará Numero: '.$exibe["AlvaraNumero"].'</p> <p>Alv...
asked by 12.06.2014 / 01:07
2
answers

Like button

I have the following button <a href='?area=ref&amp;acao=curtir&amp;noticia=$noticia->id&amp;perfil=$user'>Curtir </a>"; that calls the function that is in the action page that I like the related article, but it h...
asked by 07.06.2014 / 00:30