Questions tagged as 'php'

1
answer

Upload does not work online, part of the Upload class code appears on the screen

I created a project in PHP using the CodeIgniter that uploads an image to the server. Locally it works perfectly, however, online, hosted on a Locaweb server ( Windows Platform ) presents an error, when I upload it appears part of the code o...
asked by 01.07.2014 / 15:16
2
answers

How to add array offset for newsletter submission?

I have to send a newsletter to all network users. The problem is that the array , containing the result of the query, has about eight thousand records. How can I optimize it so it does not overflow the memory limit? Adding ini_set('memory_li...
asked by 18.06.2014 / 21:08
2
answers

Receive responses from the jQuery Ajax request

When I send an Ajax to run the script from my PHP the only thing it returns is success if the script was executed successfully or error if the script did not run successfully. Question: How to capture response from PHP and return this response t...
asked by 02.08.2014 / 14:27
3
answers

List all months in an interval, or query or schedule?

I'm making a chart that lists a certain amount per month, but you can have more that has nothing, so it does not return any value and does not list it on the chart. I do not know if I should change the query or programming, can anyone help me...
asked by 12.08.2014 / 15:50
1
answer

How popular is an array with the registered bank records?

I have a box that shows the records that will be inserted into the database. But I'd like to make a change to that data that was entered. So I wanted to know how to make the records that are in the bank table popular in box. Code: <table...
asked by 07.10.2014 / 17:53
1
answer

Report Design UI for PHP

I've used Crystal Reports a lot to visually create my reports based on queries in the database. It was very easy to group repeated information into the query. I have searched for PHP software or libraries to do the same thing in web environme...
asked by 03.09.2014 / 01:26
1
answer

Running background processes - Accessing same script twice

I have a PHP script that aims to integrate with a third-party system. Basically, my script sends image and text files to the client ftp. To ensure processing for a long time, I use the following statement: ignore_user_abort( true ); // N...
asked by 15.08.2014 / 22:26
1
answer

Error making a dynamic insert in PHP

The code that is causing the error: public function Inserir($tabela,$sql){ ksort($sql); $Campos_nome= implode('', '', array_keys($sql)); $Campos_valor= ': '. implode(', :', array_keys($sql)); $novo=$this->prepare("INSERT...
asked by 28.05.2014 / 11:18
1
answer

Connecting a local server to an external server with js and php

My intention is for the local server to query data on an external server. I wonder how I could get the external server to wait for the local connection, and depending on that local connection, make different decisions. Example: I have 2 clien...
asked by 13.05.2015 / 22:06
2
answers

How to tell if a person has visited a page in the last 2 days

I have an idea, to show an ad only to those who have visited the site before, and another ad for people who have never visited before .. (LAST 2 DAYS) SOMETHING LIKE IT: <?php if ($visitou = sim): ?> APARECE ANUNCIO PRA QUEM JA...
asked by 13.10.2018 / 23:16