Questions tagged as 'php'

1
answer

How to get data object in php?

I'm passing an angle object to php, but php insisted and "telling" that the data that is coming is not an object, what should I do? How can I get this data in php? Follow my codes angular: angular.module('app.controllers', []) .controll...
asked by 29.01.2016 / 19:04
1
answer

Ajax, PHP Problems when receiving data

Good people, my problem is this. I have a JS function to do a query in the mysql database via ajax, it returns apparently correctly but when I try to access the value of "undefined" This is an alert (response); being "response" ajax response...
asked by 20.10.2017 / 17:27
2
answers

Inserting index and value into a two-dimensional array

I have a two-dimensional array (it contains data coming from the database). To traverse this data, I use a foreach (). I need to add an index and a value to this index at the end of each iteration of foreach (). Imagining as if it were an arr...
asked by 19.10.2017 / 18:40
2
answers

CodeIgniter - Friendly URL

I'm trying to use the CodeIgnoter framework. but I can not get past this: http://localhost:8087/CodeIgniter/index.php/usuario/home for this: http://localhost:8087/CodeIgniter/usuario/home It always appears: The requested URL /CodeIgn...
asked by 18.09.2015 / 04:54
2
answers

Listing images within a directory

I want to list the images in a directory, but I can not. You are listing the right amount and everything, but the images do not appear. <?php $path = "http://www.imaginew.com.br/administrar/foto_portifolio/galeria/"; $diretorio = di...
asked by 18.11.2015 / 17:44
1
answer

How do you position a moving div to be automatically saved?

I've developed a widget for my project and now I need it to be saved when I move it. Example: Initial position of widget 80px x 120px , after move it, initial position of widget 210px x 300px . I hope my doubt is...
asked by 04.12.2015 / 21:16
1
answer

File Upload

I have the following code below: PHP: <?php $nome_temporario = $_FILES["Arquivo"]["tmp_name"]; $nome_real = $_FILES["Arquivo"]["name"]; copy($nome_temporario, "/public_html/publico/$nome_real"); ?> HTML: <form a...
asked by 18.11.2015 / 21:41
2
answers

Automatic line wrap with regex

I have the following string: $var = "Saudi Arabia U23 x South Korea U23"; I want to split the names that are separated by "x" , I did the following: $arr = preg_split('/[v|x]/', $var); I used% w /% because sometimes the string...
asked by 07.01.2016 / 18:57
1
answer

Send email with PHPMailer without authentication?

I am using the following code to send email: <?php require 'libs/PHPMailerAutoload.php'; $mailer = new PHPMailer(); $mailer ->isSMTP(); $mailer ->isHTML(true); $mailer->CharSet = "UTF-8"; $mailer->SMTPAuth = true; $mailer->...
asked by 27.12.2015 / 15:38
1
answer

PHP Mailer sends email 2 times

I've been looking for this problem here in the forum, but I have not found it. If there is a link and someone can send me, I am grateful. The problem is this: This my form, sends 2 emails to the recipient that I set. I looked at the code agai...
asked by 03.11.2015 / 19:44