Questions tagged as 'php'

1
answer

Place text side by side

I do not know if it's possible, but I'd like to know if I can get a text divided into two columns?     
asked by 02.03.2015 / 11:16
1
answer

Is it a good practice not to close the .php file with? after an XHR call made from an .html file?

Should I close the PHP <?php tag with ?> ? A friend with more experience advised me not to close saying it was a "good programming practice", I never understood why, but I follow the recommendation ever. Is this really a g...
asked by 09.09.2014 / 04:27
4
answers

Vehicle-to-Board Query on sinesp via PHP - no captcha

Has anyone managed to consult Sinesp, via php? I'm trying to put this code to work without success. $placa = 'KCK2486'; $request = '<?xml version="1.0" encoding="utf-8" standalone="yes" ?><soap:Envelope xmlns:soap="http://schema...
asked by 16.04.2015 / 21:11
4
answers

Difference between null, empty, 0 and false

The goal Differentiate day-to-day usage of null , empty , 0 and false . The problem Coping with these 4 representations of variables is complicated and I do not know how to differentiate them, even more so with...
asked by 29.01.2014 / 13:53
1
answer

List states, cities and neighborhoods in register form [closed]

I have a table called "advertisement", where I need to register the information coming from other 03 tables, they are: State Tables, Cities and Neighborhoods. The purpose is for the user to register the properties via the form, adding info...
asked by 19.11.2015 / 02:13
3
answers

Implement HTTP POST and GET requests on Android

How do I send information via get in an url on Android, passing parameters? And how to return the data as JSON from my PHP?     
asked by 08.12.2014 / 20:20
3
answers

What is the solution for asynchronous processes in PHP?

In PHP, often in the middle of an operation, I need to send an email, make a webservice call, or log a log, and these can sometimes take a long time to process, but I do not have to wait for them end a request. I've been looking around, and I...
asked by 26.05.2017 / 16:04
1
answer

How to make a counter with zero to the left

I need to print values like this, with leading zeros    00001   00002   00003 for($i = 00001; $i < 10000; $i++){ validar($i); echo $i."\n\r"; }     
asked by 22.11.2015 / 10:10
1
answer

How to use the facebook API?

I have an application in PHP, where I need to enter Facebook and count the number of likes in a particular post or page. I would like to know how to embed this in my application. I heard you should use the Graph Facebook API. Thanks for any he...
asked by 20.02.2015 / 09:35
2
answers

What is Closure Object and how do I get the anonymous function return as a parameter?

Let's say I have a class , and in that class I have a method , and a you can use an anonymous function like this: Class and method: class Classe { private $exemplo = []; public function add($parametro1, $parametro2){...
asked by 21.11.2015 / 00:57