Questions tagged as 'php'

2
answers

Find file on the server

Good afternoon, I have a PHP file that looks for a txt to get the information and upload it to the SQL database, however this file is generated by the server here in the company (where my machine is already mapped to R: or \ server \ adm)...
asked by 11.05.2015 / 21:19
1
answer

How to display a specific image?

I'm making a movie system that registers the poster of the movie and I want it when I generate the report with all the films registered, it shows me the image of the poster saved in the bank and not the name of the image. I found a code that sho...
asked by 16.09.2015 / 22:31
1
answer

double hand encryption with fixed LENGTH

Does anyone know of any way to encrypt some data, two-handle , so that I can decrypt? The problem is that there is no way to decrypt (unidirectional / one-handle). base64 is bad for me because it usually increases the size of what I have...
asked by 28.09.2015 / 00:24
1
answer

Dynamize Ajax Autocomplete Jquery with json data

I want to make dynamic suggestions with this API . < br> How to streamline the suggestion file by listing data from the mysql database?    Download DEMO:    link The file countries.js is what contains the suggestion dictiona...
asked by 10.11.2014 / 21:17
2
answers

Change date format in PHP

I'm trying to change the date format as follows: public function getDate() { $date=$this->date; return $date->DATE_FORMAT($date,'%b %d %Y %h:%i %p'); } But I can not get the date in AM and PM format. solution: publi...
asked by 07.11.2014 / 14:55
2
answers

How to maintain the page of a site in the same place that it was before updating?

I have a page in html and php and put a form at the bottom of the page. When I click the "submit" button the page refreshes and goes up. This way the user has to scroll all the time until he reaches down again to see if the data has been r...
asked by 28.10.2014 / 16:15
3
answers

Variable error within the function

I'm having problems and from what I searched the internet forums, others have the same doubt as me. I can not use PHP variables within the transaction function. How do I set a variable? For example, this does not work: $id = $_POST["id_s...
asked by 02.03.2015 / 18:13
1
answer

Why can Traits have directly called methods when they are static?

I just asked a question about Traits and I had another question. If Traits are mechanisms that facilitate the import of methods, because of the limitations of an inheritance in PHP, why can their methods be accessed statically?...
asked by 24.02.2015 / 16:45
2
answers

Which is the best and safest method to program RFQs?

Well, folks, I'm now switching to PDO in php, I wanted your opinion to know if the method I'm programming is safe and if I'm programming PDO in the right way because I saw on the internet several ways to program Example code of how I am doin...
asked by 06.03.2015 / 20:53
1
answer

How to force the download of a file, which is stored in the database

I have a system where, documents from the database are listed, where the user has the option to view or download the file. I want to know how I can retrieve this file from the database and force it to be downloaded. This file is in .pdf...
asked by 05.09.2014 / 19:57