Questions tagged as 'php'

1
answer

Problem with mcrypt function *

I am using these two functions below to encrypt and decrypt a string. I left the example as clean as possible. Function for encript $key = '123'; $iv = md5( md5( 'key' ) ); mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCR...
asked by 29.10.2014 / 04:32
2
answers

MySQL BD random record preventing consecutive equal records

I have a database where I want to get a random record. I can do this perfectly with: $query = "SELECT * FROM 'mytable' ORDER BY RAND() The problem is that the database contains the order of entry of the records of the jockeys in the competit...
asked by 27.02.2015 / 05:04
2
answers

Image Cutting

I wanted to upload images with dynamic Crop. I have already looked at tutorials and etc., and I can not do it. I wanted to, for example, load an image by input and at the time open a modal with dynamic Crop, type Facebook, then send the crop...
asked by 18.02.2015 / 15:49
1
answer

Problem with long polling

Well I've done a script here to fetch information from the real-time database, but it works fine if I add it directly to MySQL, but it works fine on the page when I insert text it works for MySQL and if you disable script long polling it al...
asked by 22.02.2015 / 22:51
1
answer

Routes of the Slim PHP Framework

Hello everyone, I'm having trouble using the Slim framework ... when I try to access via get the root "/" I get it normal, but when I try to access other methods like "/ hello" it simply n goes from the error "Not Found The requested URL / sli...
asked by 30.01.2015 / 03:26
1
answer

Accentuation-Based Error [duplicate]

Hello I'm developing a Hybrid APP that uses a PHP Webservice to send an email and call a procedure in MySQL by filling it with the same email data, until the part of sending the email is all OK it sends successfully, however at the moment I...
asked by 20.07.2016 / 13:12
1
answer

What is the best way to generate data from my bank for some spreadsheet? [closed]

I have a database with 40,000 data (with a column hit), I wanted to generate a report. The problem is that as .xls takes too long to generate the data inside the worksheet, is there any better way to implement it? .csv is faste...
asked by 29.05.2015 / 17:38
3
answers

Identify browser and its version

I did several searches on different sites but I still did not find a definitive solution and that right for all browsers I would like to know how I can identify the browser and its version using PHP. For example: IE 9 CHROME 39     
asked by 14.01.2015 / 14:20
3
answers

The logic behind how PHP interprets the concatenation of string and numbers?

I was doing a question quiz for the PHP certification and there was a question that left me wondering: What will be the output of the following code snippet? <?php echo 'hello'. 1 + 2 . '34'; ?> In short: The output will be 234...
asked by 09.08.2017 / 15:02
3
answers

how to increment letters in php? [duplicate]

I need to make a program in php that increments a letter in the name received ex: If the user types the letter B, it needs to transform it into a C-word.     
asked by 04.07.2017 / 14:23