Questions tagged as 'php'

1
answer

Trying to upload JPG via Javascript and Ajax [duplicate]

I've created the following form below on a client's website, so that you can change a user's photo: <form id="formulario" method="post" enctype="multipart/form-data"> <div class="blocoCampo"> <span> Escolher nov...
asked by 28.06.2017 / 19:12
1
answer

How to fill form from combobox with database information? [duplicate]

I used the code like this: <html lang="pt-pt"> <head> </head> <body> <?php $servername = "localhost"; $username = "isabelso_isabel"; $password = "password"; $dbname = "isabelso_db"; $dbconn = mysqli_connect($se...
asked by 26.06.2017 / 13:02
1
answer

cURL Friendships / create, bad authentication data

Good with the help of Inkeliz response, this question , I was able to authenticate with Twitter via form. login.php file : <?php require_once '../modules/config.php'; require_once '../modules/class/Cookies.php'; $cookie = []; $use...
asked by 10.07.2017 / 21:14
1
answer

Return from webService in XML - php

I'm trying to consume a TOTVs webservice. My PHP code: // SOAP client $wsdl = 'http://localhost/TOTVSBusinessConnect/wsDataServer.asmx?wsdl'; $endpoint = array ( 'location' => 'http://localhost/TOTVSBusinessConnect/wsDataServ...
asked by 28.12.2016 / 13:22
2
answers

Multiple Access-Control-Allow-Origin Domains

I have a page that serves some data in JSON format based on the data received from the database, but I need to release access so that the mobile version can also get such data, how can I put more than one domain in Access-Control- Origin of htac...
asked by 02.02.2017 / 14:07
1
answer

Problem with accentuation in CSV file export

I made a reading of a CSV file as follows: $delimitador = ';'; $cerca = '"'; // Abrir arquivo para leitura $f = fopen($_FILES['uploadChange']['tmp_name'], 'r'); if ($f) { // Ler cabecalho do arquivo $cabecalho = fgetcsv($f, 0, $delim...
asked by 23.12.2016 / 17:51
3
answers

Script to send email [duplicate]

I am creating a page, where you have the contact part, I have already made the form, etc., but at the time of sending, I can not get a function to send to my email. Could someone help? <article id="contact"> <h2 class="major"...
asked by 30.01.2017 / 14:31
3
answers

Is there a function in PHP that simulates a LEFT JOIN?

I'm developing an application in PHP that needs to display a graphical indicator. The problem is that the data comes from an external API and depending on the filter applied, the API does not return points I need to insert into the chart. Ex...
asked by 21.02.2014 / 19:09
3
answers

403 Forbidden when writing data to a form

I have a field in the form that allows html tags. If you insert the following line in the field and submit the form, it returns the error 403 forbidden: <span style="display: none">&nbsp;</span> But if you insert the line wi...
asked by 18.03.2014 / 13:19
2
answers

Update in Zend 2

I'm studying Zend Framework 2 and am needing a hand to do an update on two tables that are related. Come on. I have the table entries with the fields: id_entrada id_notafiscal and in the fiscal_notes table the fields: id_nota...
asked by 24.02.2014 / 23:08