Questions tagged as 'php'

1
answer

SQL does not return all results

I have 2 tables in MySQL, one called municipalities and another called municipios_ibge both have a column named municipio that holds the municipality of each city of Brazil. I have to do the following: I need to check if the municipalities...
asked by 15.08.2016 / 01:28
2
answers

Ajax returning [object Object]

HTML index.html <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script><scriptsrc="script.js"></script> <link hre...
asked by 20.08.2016 / 21:09
0
answers

Search in sql server 2014 with php

I am using Sql Server Express, I have an instance installed in two virtual machines on the server, one of the installed instances is Sql Server 2008 , and the other is the Sql Server 2014 When executing the same query in both instances I h...
asked by 21.06.2016 / 01:27
1
answer

Long Polling does not timestamp GET

I took this example on the blog link Server.php <?php header('Content-type: application/json'); require 'pdo.php'; set_time_limit(0); while ( true ) { $requestedTimestamp = isset( $_GET['timestamp'] ) ? (int)$_GET['timestamp'] :...
asked by 11.08.2015 / 21:18
0
answers

How to upload with Bootstrap Dialog

I'm trying to adapt a script that I have to upload with Bootstrap Dialog but I'm not getting it, I wish I could use the same form I already perform some operations to maintain the development pattern, I made a modification in the code to try t...
asked by 17.08.2015 / 14:57
0
answers

Define custom parameters SoapClient PHP

I'm consuming an external webservice via PHP and it requests authentication in a different way, the login and password has to be passed inside the XML. But I'm not able to authenticate. The call to the service is being created as follows. p...
asked by 19.08.2015 / 15:37
0
answers

Migration site with a lot of content [closed]

I'm migrating a 5gb site from a windows server to a linux. First of all I'm downloading files that are online via FTP to leave a backup on my computer. But this method is taking too long. Does anyone know a faster way to download the files?    ...
asked by 28.08.2015 / 20:57
0
answers

Problems with set_include_path ()

I find it difficult to make a single configuration file (responsible for __autoload ) be used by both the files that are in the root and those in the admin folder. The root directory contains the folders app , public...
asked by 27.08.2015 / 02:57
1
answer

Errors connecting to SMTP from gmail using PHPMailer

Hello, I'm trying to send email using PHPMailer however I'm having some errors. First errors with the SMTP class not found. I discovered that I need to create a require for the PHPMailerAutoload.php file in my code. After this, problems such...
asked by 20.09.2016 / 15:31
1
answer

How to execute PHP file from function in JavaScript?

I have the following structure for registering a new MySQL database account (register.php): <?php $con = mysqli_connect("meu_host","meu_user","minha_senha","banco"); mysqli_query($con,"INSERT INTO contas VALUES (" + $id + ", " + $pass...
asked by 25.03.2014 / 04:09