Questions tagged as 'php'

1
answer

Redirect to a page passing an object

I need to pass an object to a page. For example: I would like the moment I redirect to a certain page that will display the html, that in it I could retrieve that object and use whatever is in it. Would anyone have an example of how to do thi...
asked by 15.12.2014 / 14:07
1
answer

Keep connection open in webservice php

I am building a simple webservice and PHP + JSON where I have 2 tables and intend to carry out CRUD operations. It is possible that the medium-term webservice consumed by many devices at the same time, which in my opinion can lead to many concur...
asked by 03.02.2015 / 13:18
2
answers

Htaccess is not redirecting to 404 error page

I have .htaccess with the following configuration: ErrorDocument 404 /erro404.html <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^index/?$ index.php [NC,L] RewriteRule ^index/([a-z0-9-]+)?$ index.php?pagina...
asked by 18.01.2015 / 20:27
1
answer

How do I know if the email has reached the Recipient?

I'm building a (in PHP) system that needs approvals, and with each approval I send a confirmation email to the user ... I'm using phpMailler , and he informs me in the end that the server sent the email .. But I wanted to know (be sur...
asked by 30.10.2014 / 20:01
1
answer

Functions of PHP adapted to MySQL

When trying to optimize some queries to not depend on PHP to do something that could come ready from the database, I was trying to adapt the two routines below into functions > from MySQL: function encode( $input, $index ) { $base...
asked by 14.07.2016 / 17:12
1
answer

Creating new options for Magento attributes

I'm having trouble trying to create new options in the "Manage Options" tab. When I create an attribute, I already know how to save the data correctly in the database. I'm replacing Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit_Tab_Opti...
asked by 31.01.2014 / 22:34
1
answer

Facebook API does not match user

I minimized my code as little as possible in order to isolate the error. I've already reviewed the forum for a simple answer, but no tips have solved this basic problem. In the app settings, the only changes I made were to populate the url (l...
asked by 07.02.2014 / 12:05
2
answers

Redirecting HTTP requests

I have the following problem: I want to redirect (through .htaccess) the urls below with temporary redirect ( HTTP/1.1 302 Moved Temporarily ) Examples: http://www.site.com.br/artigo/0/ to http://www.site.com.br/artigo/1/...
asked by 18.02.2014 / 16:02
3
answers

Empty multiple tables in a single run

Via PDO , I can do the TRUNCATE (English) of a table as follows: // Matriz de definições $dbcon_new = array( "host" => "localhost", "dbname" => "bubu", "username" => "super_dragon", "password" =>...
asked by 17.02.2014 / 17:25
2
answers

Paging within modal window in bootstrap

I have a modal window in bootstrap, and inside it a pagination, it happens that every time I click on some paging link, the modal closes. Does anyone know how I can make the modal always open? jQuery: $.post("busca-usuarios.php", {busca: bu...
asked by 26.12.2013 / 17:26