Questions tagged as 'php'

1
answer

Define absolute / relative directories for CMS in PHP

I am re-studying PHP, proposing to make my own CMS. I already have a lot of things: modular system, login, etc., but some time ago I'm standing in a seemingly minuscule problem: the paths! Use WAMP in development and CPanel in semi-production te...
asked by 22.09.2018 / 19:06
1
answer

PHP - Facebook Error: Unable to load the URL

I was trying to login with facebook using php for a web application that I am working on, I managed to make it work on my localhost so I proceeded to use the IIS and got a domain for the application but when trying to login it gives me the follo...
asked by 19.09.2018 / 14:37
0
answers

cycle foreach duplicates the inserts to the database

I have a JSON that I sent from an android app to a PHP file where I go through it and store it in the PosgreSQL database, the situation is that when there are more than 250 records it always duplicates them ej json takes 300 elements and enters...
asked by 19.09.2018 / 16:56
0
answers

Mailer Error: Could not access file PHP Mailer

My problem is as follows. I am trying to attach a file pdf by means of the function AddAttachment of PHPMailer but it throws me the following error:    "Message could not be sent. Mailer Error: Could not access file:   /a...
asked by 17.09.2018 / 20:08
1
answer

Upload select within a file upload

Hello good afternoon as you found I wanted to ask how I could upload a select within a file upload I mean upload the select and files with a single button this is the code I have now this is my javascript //funcion cargueArchivo $(':file')...
asked by 17.09.2018 / 18:59
1
answer

Error jQuery and Ajax, returns [object Object] of a SQL query

I have an error, and PHP does not return the query sql well. This is what I do: $(document).on('click', '.editarCliente', function () { var idc = $(this).attr("id"); console.log(idc); $.ajax({ type: 'POST', url: 'php/edit...
asked by 17.09.2018 / 19:35
1
answer

show value in div with image every 10 seconds

I would like to achieve 2 questions, the first is that I have an image inside a div, that simulates a little light, the idea is that depending on the number of records in a table I show the image and over it the number. I use a function to bring...
asked by 12.09.2018 / 15:38
0
answers

Get json towards PHP object - Android studio

I have a php where I make a selection to a table of regions, I get the name and return it through PDO as an object. Then in android studio I capture the answer, returns an empty object. I attach images of php and the respective android cod...
asked by 04.10.2018 / 05:38
0
answers

Error in webservice soap HTTP response 415 content type 'text / xml; charset = UTF-8 'was not the expected type' application / soap + xml; charset = utf-8 '

I'm trying to consume a soap webservice with nusoap in php and I get the following error:    ErrorHTTP Error: Unsupported HTTP response status 415 Can not process   the message because the content type 'text / xml; charset = UTF-8 'was not   ...
asked by 04.10.2018 / 13:07
0
answers

Problems attach_mailer (Multiples address)

I have an email format for php, using the kind of attach_mailer available on the internet ... So far I always send an email by address, but now I need the same email to be sent to several recipients. $correos_empresa ="[email protected],corre...
asked by 04.10.2018 / 13:15