Questions tagged as 'php'

1
answer

My database is changing the surname by the registered name and the email does not appear

File that writes: <html> <head> <meta charset="utf-8"> <title>cadastrando...</title> </head> <body> <?php $host = "localhost"; $user = "root"; $pass = ""; $banco = "cadastro"; $conexao=@mysql_connec...
asked by 05.10.2015 / 20:56
1
answer

Transparent background image

I wonder if it is possible to upload an image and leave a certain part of the image (the background) transparent. I would like to overlay this image. The mannequin is the fixed background image, and the dress is the image that I want to up...
asked by 29.09.2015 / 04:01
1
answer

Problem with SQL Server connection

I have a PHP system hosted on a Linux server that queries a SQL Server database through mssql . Works perfectly on the server. I needed to make some changes to this system, so I put it in my localhost and it was working ok. Out of all, que...
asked by 17.03.2016 / 12:31
1
answer

Compress / compress image after upload

I need help perfecting a script .. In general I want to add to this script: if(isset($_POST['action']) && $_POST['action'] == 'get_photo') { if(is_array($_FILES)) { if(is_uploaded_file($_FILES['userImage']['tmp_name...
asked by 26.02.2016 / 14:11
1
answer

Display exclude link only if there are no child categories

I have a database with the following columns: |id|id_pai|nome_categoria| +--+------+--------------+ |01| 0 | Eletronicos | |--+------+--------------+ |02| 01 | Notebook | |--+------+--------------+ |03| 0 | Livros | +--+----...
asked by 24.02.2016 / 15:09
1
answer

What is it for and how to use include_path in php

I have many scripts using include_path, the problem is that the explanation of php.net I find a bit confusing, I can not understand how it works and what it does, help me please     
asked by 13.03.2017 / 04:05
1
answer

Link of a JSON parameter to a product in Woocommerce

I have a JSON that returns me a list with some flight data: "programa": "multiplus", "qtdOpcoesIda": 50, "qtdOpcoesVolta": 50, "menorTarifa": { "pontos": 15000, "dinheiro": 767.8 }, "taxaEmbarque": { "POA": 29.9, "F...
asked by 22.03.2017 / 11:00
1
answer

Create folders in KCFinder

Is there any way / setting to create folders by KCFinder in their upload directory? Ex: The default directory is / images, inside it would like to create other folders by KCFinder itself, but I did not find this option. I know I...
asked by 16.03.2017 / 14:15
1
answer

Open Login Facebook according to platform

I'm using the SDK - PHP to log in to Facebook, when I access it through a PC it opens the normal facebook site, but when it opens through the cell phone it opens the site through the browser as well. Can you open the application if the user is o...
asked by 06.11.2015 / 20:39
1
answer

magento simplexml_load_string ()

I was adding products in my store normally until the images stopped appearing on the front and when I went to see the error log what appeared was: 2015-10-28T11:40:00+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 1: parser erro...
asked by 28.10.2015 / 12:51