Questions tagged as 'php'

1
answer

Torrent link (magnet) with counter

Hi, can you download magnet links via php like normal mode? I need to count how many times the file has been downloaded. I tried fopen() , file_get_contents() and header("Location: ") , which also did not work: Warning: f...
asked by 12.04.2014 / 05:49
2
answers

Showing one icon for directory and another icon for other files

I need to read a directory and change its icons. If it is a directory, apply an icon, if it is a .txt file, apply another icon. Here is the code I did: <?php $dir = 'ftp/'; $pasta = opendir($dir); while ($arquivo = readdir($pasta)){...
asked by 14.04.2014 / 16:34
1
answer

How to export a table to CSV using PHP?

I have a contact table, I would like to know how to export it to .csv using PHP?     
asked by 17.03.2014 / 20:30
3
answers

How to display part of a text stored in a TEXT column?

My table has a TEXT field where I enter text with paragraphs that are read through the nl2br function of PHP. I print each column of the table through mysql_fetch_array and everything is displayed correctly: $res2 = mys...
asked by 16.04.2014 / 17:12
1
answer

Why is this script returning me an object?

I'm working with jQuery to register information in the database through Ajax and I'm not sure why this code is returning me an object type variable. The project I'm working on is being developed over a Admin Panel with the entire interfac...
asked by 15.11.2014 / 23:46
3
answers

Variable $ _POST has size limit?

I'm working with the $_POST variable on a particular part of the system I'm developing, except that when I make a submit of a POST-type form not all information is passed to this variable $_POST . Is there any limit size f...
asked by 17.11.2014 / 16:48
2
answers

How to import data from a txt to MySQL with php?

How to import data from a txt into MySQL with PHP? I need to read a txt get all data and insert into mysql in a string of characters that in position zero has a code four-digit number and in position eleven the description with up to 80 c...
asked by 27.06.2014 / 20:19
2
answers

Assemble query for query in bank according to marked checks

I have the following situation, the user can select the language level, such as: Basic, Intermediate or Advanced and I have it in the form of a checkbox. I need to set up a dynamic query according to the user-selected options, for example, if...
asked by 29.05.2014 / 18:03
1
answer

MySQL query loading table with browse button

I'm in need of a help. I need to make a Search button, pick the parameters of some selects (combobox) and update a table below the filters. But I'm not sure how to do this, to press each click on the button. Here is the code I've alread...
asked by 17.10.2014 / 03:24
1
answer

How to change the value of the meta tag?

I'm trying to change the value of meta tags with data coming from the database, however they are not populated inside the tags. The value is normally retrieved and displayed inside the script when the view-source is enabled but the content of th...
asked by 13.06.2014 / 19:52