Posts by Vinícius • 1,357 points
57 posts
-
-2
votes2
answers198
viewsQ: 'Undefined offset PHP' in a "for" loop
I’m trying to organize some folders in order in an application I’m doing for FTP. Follow the code I’m using: if ($file->isDir()) { echo '<table>'; $archive = [$file]; for($i = 0; $i <=…
-
13
votes2
answers9163
viewsQ: How to force files of type . txt to be downloaded
I have a page, but I don’t want you to click on files like . txt to download instead of displaying them. I am developing this page in PHP. I saw some scripts on the web, but it is forcing the…
-
3
votes2
answers19537
viewsA: Delete record by ID
$del = "DELETE FROM autoriza WHERE ID =".$_POST['id']; $delgo = mysql_query($del) or die('Erro ao deletar'); echo "deletado"; Creates a codition to know if the id has been sent, or use if…
-
2
votes2
answers352
viewsQ: Showing one icon to directory and another to other files
I need to read a directory and change its icons. If it is a directory, apply an icon if it is a file. txt apply another icon. Follow the code I made: <?php $dir = 'ftp/'; $pasta = opendir($dir);…
-
2
votes1
answer1213
viewsQ: Recover textarea value in form . serialize()
I’ve always used generic function, but I’m having a problem recovering the value of textarea. I use a text editor on textarea, the Ckeditor. Here follows the function I’m using: function…
-
2
votes4
answers32009
viewsA: What is the most complete linux for programmers?
Go Linux Mint, fast, light and easy to find solutions.
-
6
votes5
answers1876
viewsQ: Retrieve a final value from a json in Javascript
You can recover a result value from a url by jQuery? My problem is this, I need to receive the final result of this url:…