Questions tagged as 'php'

3
answers

Problem with special characters laravel

I'm starting to learn about Laravel 5 and I'm having a problem, every text I write with special characters is converted to ' '. I have tried all charset configurations from ISO-8859-1 through UTF-8. Have some way to set this up in laravel...
asked by 19.08.2015 / 21:17
1
answer

Store form data temporarily before writing to the database

How do I store data on a form temporarily before inserting into the bank? I have a form with a set of fields. After the user populates the field set, you have the option to add one more set with the same fields to insert new values. I would like...
asked by 27.07.2015 / 15:37
1
answer

How to display pagination with shortcodes in woocommerce, such as [Product_Category]

I'm using the shortcode [Product_Category] to display the products in the store by the ease of combining categories, I can display for example only the products that belong to the same categories simultaneously ERGOMETRIA and PROFESSIONAL and NE...
asked by 26.07.2015 / 09:51
1
answer

Sendmail () localhost in LOT

Friends, I'm able to send mail normally using sendmail () localhost, as follows: sendmail.ini [sendmail] smtp_server=smtp.gmail.com smtp_port=587 error_logfile=error.log debug_logfile=debug.log smtp_ssl=auto auth_username=meugmail auth_pas...
asked by 26.07.2015 / 18:45
2
answers

Login in an Android APP

I am having trouble authenticating my user when the user is verified it returns me a successful response, but my application does not change the activity. Here are my codes: PHP: <?php if($_SERVER['REQUEST_METHOD']=='POST'){ $username =...
asked by 03.09.2015 / 16:35
2
answers

Convert string to array along with delimiter

I am separating a string in array if there is a certain preposition in it ('with', 'to', 'by'), but I want to return the string containing the delimiter as well, ie the preposition. > Using preg_split and explode, I have the same and unsatisfa...
asked by 08.09.2015 / 16:55
1
answer

How to execute a procedure in PHP

I'm trying to create a listing and I'm having trouble calling the select procedure. Code connecting to the bank: <?php $conexao = mysql_connect("localhost", "admin", "admin") or print (mysql_error()); print "Conexão OK!"; mysql_clo...
asked by 10.09.2015 / 03:31
1
answer

Download script by curl method

I'm having some problems with the script process below. Literally it is downloading very slowly, and this is when the download process does not fall or restart from scratch. Is there any way to fix this, so that the download is done...
asked by 12.09.2015 / 07:38
1
answer

Cake \ Database \ Driver \ Mysql database driver can not be used due to missing PHP extension

I'm having problems with CakePHP bake, I searched for solutions in several places but none solved the problem. Error log: Exception: Database driver Cake\Database\Driver\Mysql cannot be used due to a missing PHP extension or unmet dependenc...
asked by 10.09.2015 / 03:11
1
answer

How to convert latin1_swedish_ci data to utf8_bin in php?

I've got a SQL script that "mounts" 3 tables, one with country, one with states, and one with Brazilian cities. The script makes the collection , of the names, in latin1_swedish_ci and I needed it to be utf8_bin , because the...
asked by 13.01.2016 / 15:01