Questions tagged as 'php'

1
answer

Send email via PHP on windows server 2008 R Standard with wampserver 2.0

I'm using wampserver 2.0 on windows server 2008 R2 Standard. SMTP Virtual Server is installed on the server. In php.ini I have the following configuration: [mail function] SMTP = 000.00.000.000 //IP do servidor SMTP, substituí o IP original só...
asked by 21.08.2014 / 13:55
2
answers

Make login system go back to previous page in php

I would like to make a system that the user when trying to access a url that needs to be logged in the script checks if it returns false it redirects to the login page and after logging in it automatically returns to the url that it was trying t...
asked by 21.07.2014 / 22:53
3
answers

How to display an ajax error through a url?

I have a login / password field, when some user does not fill in one of the inputs, I display a message using ajax like this: $('#loginform').submit(function(event) { // Values var login = $.trim($('...
asked by 06.08.2014 / 05:20
1
answer

How to check variables with jQuery so they are not sent empty?

I'm learning about jQuery and I've already started doing Ajax requests to register the information in the mysql database. I have a code that has several variables and I would like to ask how I can check at one time if there is any empty variable...
asked by 07.08.2014 / 03:06
4
answers

Upload limit with php.ini on Wordpress

Please, do you know how to change the Configuration PHP > no Cpanel > software/serviços > > File Uploads upload_max_filesize Maximum allowed size for uploaded files from 2M to 10M (for example)? While I tried all the w...
asked by 22.07.2014 / 20:00
3
answers

.htaccess configuration to access several PHP files within the same folder

I have been beating since yesterday with the configuration of my .htaccess , my original URL is like this (2 is the number of the page): www.example.com/categoria/produtos/2 Categoria is a folder within my public_html a...
asked by 06.08.2014 / 22:17
1
answer

query error in mysqli

Person, as I tidy this my code, it is giving error: <?php //IMPRIME TODOS OS VALORES DO BANCO CADASTRO $servidor = "localhost"; $usuario = "root"; $senha = "admin"; $banco = "cadastro"; //conecta-se ao banco de dados Mysql $con = n...
asked by 02.08.2014 / 23:42
1
answer

profiling php (debug + runtime)

Does anyone use php profiling without zend studio? The problem of zend studio is the license ... but this functionality is very good, there is something open source that is not as complicated as xdebug and its many configurations, that is, th...
asked by 13.08.2014 / 02:28
2
answers

Create CSV file from PHP

I want to create an XSV file from PHP. What I want is to be able to create columns and give background color to an element for example. I have the following: <?php header("Content-type: text/csv"); header("Content-Disposition: attachment;...
asked by 06.08.2014 / 17:04
1
answer

Google Pie Charts is not displayed when the data has more than one row

I'm trying to display a PieChart, however, if the search in the database returns only one row, the chart is displayed. If you return more than one line, the graph does not appear. function that generates graph data: public function grpAplic...
asked by 14.08.2014 / 14:51