Questions tagged as 'php'

1
answer

error in getting values from array stdClass php

When I use echo var_dump($location); I get this: object(stdClass)#1226 (2) { ["type"]=> string(5) "Point" ["coordinates"]=> array(2) { [0]=> float(44.0928438) [1]=> float(-70.20876942) } } I tried to get the floats (44.09...
asked by 24.05.2014 / 04:10
3
answers

receive ajax json POST in php and return on success

What am I doing wrong? <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script><script>$(document).ready(function(){$('#btn1').click(function(){vartmp={"Proc":32...
asked by 13.05.2014 / 15:35
2
answers

Payout returned stopped being suddenly received

I have a problem with a site that I made a short time ago, in the first days, when a customer made a payment in PagSeguro I received the return normally with the updates of the status of the purchase, however, about two weeks ago I stopped recei...
asked by 28.05.2014 / 13:49
2
answers

UTF-8 encoding in XML file to generate RSS

In a news site I want to generate an RSS page with the news of the day. The page is well generated, but if generating a news story with accents or special characters, the generation fails. In my code I have the following: <?php header(...
asked by 20.05.2014 / 10:39
1
answer

What is the difference between SOAP and NuSOAP?

I'm having trouble understanding the process of creating a WebService in PHP. I created a server which makes the following call: <?php require_once "lib/nusoap.php"; $soap = new soap_server; $soap->configureWSDL('WS-WebCodeF...
asked by 06.09.2017 / 15:41
1
answer

What's the difference between using function with parameter THIS or OBJ?

Now, when I try to use a function, when I put this as a parameter, it was not executed, but when I put OBJ, it worked normally. Can anyone tell me the difference between the two? function mostraCampo(obj) { var select = document.getE...
asked by 06.09.2017 / 17:02
1
answer

How to get client IP in PHP? [duplicate]

I have already researched in several forums and even here but none of the solutions I have seen have brought me the correct result. In all the attempts I get as ip :: 1 Follow the code I'm using <?php if (!empty($_SERVER['HTTP_CLI...
asked by 14.09.2017 / 17:27
1
answer

Execute a script automatically - without the use of CRON

I usually run a script that should be run from time to time (such as request status updater, for example) using Linux CRON. (I have no idea how to do this in Windows hosting) However, I noticed that Wordpress seems to do this without using CR...
asked by 13.05.2015 / 15:01
1
answer

Word and Mysql formatting

Colleagues, how would you make a Word proposal registered within MySQL, and could it be edited? I tried to use the wysiwyg editors to place and paste, however the Word HTML, after saving, MySQL does not recognize. Solved. I had put the...
asked by 14.05.2015 / 17:56
2
answers

About MySQL functions

I have a question about some functions of MySQLi In the conventional way we would do this: public function Numrows($sql) { return mysqli_num_rows($sql); } And since I'm using extends mysqli I'm doing this: public functi...
asked by 22.05.2015 / 07:55