Questions tagged as 'php'

1
answer

run automatically

I have a code where I will need to have a processing page, and on this page I will need to execute a javascript function automatically. Currently, I execute this function by clicking, like this: <input type="button" id="listarFipe" value...
asked by 22.01.2015 / 22:10
1
answer

How to do update via ajax + php

I want to update data through a modal, however it is not updating. Anyone have any idea why you're not updating? Modal: <script type="text/javascript"> $(document).ready(function() { $('#salvar').click(function() { var des...
asked by 27.01.2015 / 01:02
1
answer

How to mount columns from ul?

I have this code and would like every 4 results to be inserted a <ul></ul> to make columns of 25% wide and get exactly 4 columns. How can I do it? <ul> <li> <?php echo $i; ?>x <strong>...
asked by 28.01.2015 / 15:59
2
answers

Organize folders, subfolders, and files in an array?

Well, I have an array with values: array("Pasta/Readme.txt", "Pasta/Subpasta/helloworld.mp3", "Pasta-2/screenshot.png"); How do I return an array like this: array("Pasta" => array("Readme.txt", "Subpasta" => array("helloworld.mp3"))...
asked by 27.12.2014 / 21:40
3
answers

Get line from file

I'm reading a txt file in PHP, and I want to get the first line and the last line to be able to write. I used this code to read the entire file line by line. But what I want is just a few lines. $fp = fopen($fichier,"r"); if ($fp) { whil...
asked by 23.12.2014 / 18:57
1
answer

Why define a constant for the same document and check if it exists in the document itself?

I see in many codes that programmers are a constant and in the document itself check if this constant exists (has been defined) in itself. I would like to know why this happens. When we download the open platform from the phpBB3 platform, o...
asked by 20.12.2014 / 10:38
1
answer

how to prevent an element from being reloaded when accessing other pages of the same site?

How to keep a fixed and unchanged element even by changing pages on a website. Type, a music player, just like the sites link link However, other than ajax, if that's possible?     
asked by 21.12.2014 / 05:07
1
answer

jQuery File Upload - angularjs

I moved a site from one server to another. I'm using this file upload tool: here . Now on the new server, selecting more than one file can not upload the image, ie it is not even loaded in the window. Is any php module missing from the new serv...
asked by 15.09.2014 / 16:13
1
answer

How to make a request on the server using the COMET method?

I have a system, in which it displays database files, in list form. I query the database every 5 seconds using the Polling method. How do I use the Comet method? Since this method is not asking for server information all the time.    ...
asked by 15.09.2014 / 16:47
1
answer

Swiftmailer - Corrupted HTML on receipt

I'm having problems with Swiftmailer when I send a message and sometimes I get complaints that the content is completely broken (HTML removed). My software sends a lot of emails, and this problem happens almost every day, but we can not get a...
asked by 15.09.2014 / 20:39