Questions tagged as 'php'

1
answer

Nginx with PATH_INFO and url rewritten (friendly)

I created a .htaccess in the /var/www/project/ folder: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(statics/([a-zA-Z0-...
asked by 04.05.2015 / 01:20
2
answers

Select and dynamic div

I wanted to do a sequence of select dynamic, for example: 1º - Seleciona a Categoria (Veiculos); 2º - Seleciona a SubCategoria (Carros); 3º - Seleciona a Marca (do carro); 4º - Seleciona o Modelo (da marca); 5º - Seleciona o Ano (do mod...
asked by 04.03.2015 / 22:56
1
answer

Recover HTML updated by javascript using DOM

Is there any way to retrieve updated HTML using DOM? The original HTML page is from a remote site, which does not have internal access, and it looks like this: <div class="content" id="content"> loading </div> When we cl...
asked by 04.03.2015 / 21:19
1
answer

Javascript basic help (timers)

My question is as follows: <!DOCTYPE html> <html dir="ltr" lang="pt-BR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Joguinho</title> <link rel="stylesheet" href="...
asked by 01.03.2015 / 15:43
1
answer

Apache server does not execute .php files [closed]

I just installed Apache and PHP in my linux, and all my .php files are showing this following error log:    [Sat Mar 07 12:10:48 2015] [error] [client :: 1] PHP Warning: Unknown:   failed to open stream: Permission denied in Unknown on line 0...
asked by 07.03.2015 / 16:35
1
answer

Load data while scrolling the page with jQuery

I need help completing a code I'm developing. How can I do it, so that when the user enters the page the last 8 posts appear, and when the user scrolls, load the posts, within a loop, and at the end show the message "No there's nothing else h...
asked by 07.03.2015 / 02:50
1
answer

Query problems in XPath

HTML:      <div align="center"><center> <table border="0" cellpadding="0"> <tr> <td bgcolor="#006090" valign="top" align="center"><p align="center"><strong><font face="Tahoma" size="2" co...
asked by 03.03.2015 / 18:51
1
answer

Mount menu with Filter and Subfilter

I'm trying to set up a menu where I should show the Filter and Subfilter, I'm getting the description of the Filter but the Subfilter is not yet. What is happening is that it starts to mount the subfilter and does not "break" to the next, get...
asked by 30.01.2015 / 22:21
2
answers

Friendly URL does not retrieve variable

I'm trying to make my site's URLs friendly. Friendly URL http://localhost/mg/artista/10 .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d Rewrite...
asked by 31.01.2015 / 02:26
1
answer

How to handle exception thrown "Integrity constraint violation: Can not delete or update parent row: a foreign key constraint fails"?

I use the class PDO for communication with banco de dados and I do not know a good way to capture this exceção . I searched for a class that extends PDOException but did not find it. I can make a query before del...
asked by 29.01.2015 / 19:53