Questions tagged as 'php'

1
answer

Nginx - running php and node app in the same domain with different ports

I'm setting up a blocks in nginx, but I'm having trouble running two separate apps, see the following situation: I have 2 apps (PHP and Node.js) just a domain (example.com) and need to point port 80 for the PHP application and 8080 for the...
asked by 30.11.2015 / 15:34
4
answers

Codeigniter and .htaccess in subfolder on server

My goal is to make an application written in Codeigniter run on the server in a subfolder and not in the main domain, eg: www.dominio.com.br/foo . The error is about redirection , every request is being redirected to home ( www.domi...
asked by 24.04.2015 / 14:45
1
answer

Recover Mysql data and save to a vector

Reformulating the question .. I have a MySQL database, inside it contains a table named map, inside the map table I have the fields idmapa (auto_increment), lat (which stores the latitude of a map position), lng ( which stores the length of a ma...
asked by 25.11.2015 / 02:02
1
answer

Problem concatenating query in PDO

Good evening, I have a search that contains multiple choices for checkbox and Selects and I'm trying to concatenate the query to search according to the user's choice but give me error I do not know what I can be doing wr...
asked by 25.03.2015 / 23:22
1
answer

CakePHP constants are not recognized when accessing file in webroot

I was testing a simple upload system in my cakephp, for that, I referenced the imgs folder by those paths that the index.php of the root folder gives me. But it was always giving error, saying that the folder path was wrong, and when I echoed th...
asked by 31.03.2015 / 14:54
1
answer

How to do an autocomplete with ajax?

I'm trying to implement an autocomplete with ajax, where I search the database and show the options in the input, but I can not identify where I am wrong. Follow the code: <div class="row troca"> <div class="s...
asked by 13.04.2015 / 20:06
1
answer

Security in PHP

I'm new to php security and would like to know if the items listed below would help make my site safer. SSL (Secure Socket Layer) PHP Remove all possible information referencing the server (PHP and apache). Use the most curre...
asked by 06.05.2015 / 14:23
2
answers

PHP / MySQL Add Category to Subject

Good people have never had much interest in the back-end area, but for greater reasons I'm having to learn. So far the basics I can already do, which are insert, delete, update, view the data using php / mysql. Now I came across a problem...
asked by 29.04.2015 / 14:25
2
answers

How to send array files via ajax?

Well I have a script that inserts the posts in the database now I am trying to upload images together with the post I am trying to send problems with array of input file to the file where I'll handle the upload how can I do t...
asked by 03.03.2015 / 22:39
1
answer

Organization of files in PHP

I have the following folder structure. classificados index.php login.php -->config -->conecta.php -->funcoes -->banco-usuario.php -->headers -->cabecalho.php --&...
asked by 01.03.2015 / 14:43